@code-pushup/cli 0.13.1 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/index.js +5 -5
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -156,6 +156,7 @@ Each example is fully tested to demonstrate best practices for plugin testing as
156
156
 
157
157
  - 📏 [File Size](../../examples/plugins/src/file-size)
158
158
  - 📦 [Package Json](../../examples/plugins/src/package-json)
159
+ - 🔥 [Lighthouse](../../examples/plugins/src/lighthouse)
159
160
 
160
161
  ## CLI commands and options
161
162
 
package/index.js CHANGED
@@ -1391,7 +1391,7 @@ function scoreReport(report) {
1391
1391
  )?.score;
1392
1392
  if (score == null) {
1393
1393
  throw new Error(
1394
- `Group has invalid ref - audit with slug ${slug}-${ref.slug}-audit not found`
1394
+ `Group has invalid ref - audit with slug ${ref.slug} from plugin ${slug} not found`
1395
1395
  );
1396
1396
  }
1397
1397
  return score;
@@ -1512,28 +1512,28 @@ function sortPlugins(plugins) {
1512
1512
  }
1513
1513
 
1514
1514
  // packages/utils/src/lib/verbose-utils.ts
1515
- function getLogVerbose(verbose) {
1515
+ function getLogVerbose(verbose = false) {
1516
1516
  return (...args) => {
1517
1517
  if (verbose) {
1518
1518
  console.info(...args);
1519
1519
  }
1520
1520
  };
1521
1521
  }
1522
- function getExecVerbose(verbose) {
1522
+ function getExecVerbose(verbose = false) {
1523
1523
  return (fn) => {
1524
1524
  if (verbose) {
1525
1525
  fn();
1526
1526
  }
1527
1527
  };
1528
1528
  }
1529
- var verboseUtils = (verbose) => ({
1529
+ var verboseUtils = (verbose = false) => ({
1530
1530
  log: getLogVerbose(verbose),
1531
1531
  exec: getExecVerbose(verbose)
1532
1532
  });
1533
1533
 
1534
1534
  // packages/core/package.json
1535
1535
  var name = "@code-pushup/core";
1536
- var version = "0.13.1";
1536
+ var version = "0.14.0";
1537
1537
 
1538
1538
  // packages/core/src/lib/implementation/execute-plugin.ts
1539
1539
  import chalk4 from "chalk";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/cli",
3
- "version": "0.13.1",
3
+ "version": "0.14.0",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "code-pushup": "index.js"