@code-pushup/cli 0.8.18 → 0.8.20

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.
package/README.md CHANGED
@@ -139,7 +139,7 @@ jobs:
139
139
  We provide comprehensive documentation on [how to create a custom plugin](./docs/custom-plugins.md).
140
140
 
141
141
  The repository also maintains a set of plugin examples showcasing different scenarios.
142
- Each example is fully tested to give demonstrate best practices for plugin testing.
142
+ Each example is fully tested to demonstrate best practices for plugin testing as well.
143
143
 
144
144
  **Example for custom plugins:**
145
145
 
@@ -170,7 +170,7 @@ Each example is fully tested to give demonstrate best practices for plugin testi
170
170
  | **`--onlyPlugins`** | `string[]` | `[]` | Only run the specified plugins. Applicable to all commands except `upload`. |
171
171
 
172
172
  > [!NOTE]
173
- > All common options, expect `--onlyPlugins`, can be specified in the configuration file as well.
173
+ > All common options, except `--onlyPlugins`, can be specified in the configuration file as well.
174
174
  > CLI arguments take precedence over configuration file options.
175
175
 
176
176
  > [!NOTE]
@@ -184,7 +184,7 @@ Usage:
184
184
  `code-pushup collect [options]`
185
185
 
186
186
  Description:
187
- The command initializes the necessary plugins, runs them, and then collects the results. After collecting the results, it generates a comprehensive report.
187
+ The command initializes and executes the necessary plugins and collects the results. Based on the results it generates a comprehensive report.
188
188
 
189
189
  Refer to the [Common Command Options](#common-command-options) for the list of available options.
190
190
 
@@ -204,7 +204,7 @@ Usage:
204
204
  `code-pushup autorun [options]`
205
205
 
206
206
  Description:
207
- Run plugins, collect results and upload report to the Code PushUp portal.
207
+ Run plugins, collect results and upload the report to the Code PushUp portal.
208
208
 
209
209
  Refer to the [Common Command Options](#common-command-options) for the list of available options.
210
210
 
package/index.js CHANGED
@@ -1725,7 +1725,7 @@ function auditOutputsCorrelateWithPluginOutput(auditOutputs, pluginConfigAudits)
1725
1725
 
1726
1726
  // packages/core/package.json
1727
1727
  var name = "@code-pushup/core";
1728
- var version = "0.8.18";
1728
+ var version = "0.8.20";
1729
1729
 
1730
1730
  // packages/core/src/lib/implementation/collect.ts
1731
1731
  async function collect(options2) {
@@ -2059,13 +2059,13 @@ async function coreConfigMiddleware(processArgs) {
2059
2059
 
2060
2060
  // packages/cli/src/lib/implementation/only-plugins.utils.ts
2061
2061
  import chalk8 from "chalk";
2062
- function filterPluginsByOnlyPluginsOption(plugins, { onlyPlugins }) {
2062
+ function filterPluginsBySlug(plugins, { onlyPlugins }) {
2063
2063
  if (!onlyPlugins?.length) {
2064
2064
  return plugins;
2065
2065
  }
2066
2066
  return plugins.filter((plugin) => onlyPlugins.includes(plugin.slug));
2067
2067
  }
2068
- function filterCategoryByOnlyPluginsOption(categories, {
2068
+ function filterCategoryByPluginSlug(categories, {
2069
2069
  onlyPlugins,
2070
2070
  verbose = false
2071
2071
  }) {
@@ -2107,11 +2107,8 @@ function onlyPluginsMiddleware(processArgs) {
2107
2107
  validateOnlyPluginsOption(cliOptions.plugins, cliOptions);
2108
2108
  const parsedProcessArgs = {
2109
2109
  ...cliOptions,
2110
- plugins: filterPluginsByOnlyPluginsOption(cliOptions.plugins, cliOptions),
2111
- categories: filterCategoryByOnlyPluginsOption(
2112
- cliOptions.categories,
2113
- cliOptions
2114
- )
2110
+ plugins: filterPluginsBySlug(cliOptions.plugins, cliOptions),
2111
+ categories: filterCategoryByPluginSlug(cliOptions.categories, cliOptions)
2115
2112
  };
2116
2113
  return parsedProcessArgs;
2117
2114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/cli",
3
- "version": "0.8.18",
3
+ "version": "0.8.20",
4
4
  "bin": {
5
5
  "code-pushup": "index.js"
6
6
  },
@@ -1,8 +1,8 @@
1
1
  import { CoreConfig } from '@code-pushup/models';
2
- export declare function filterPluginsByOnlyPluginsOption(plugins: CoreConfig['plugins'], { onlyPlugins }: {
2
+ export declare function filterPluginsBySlug(plugins: CoreConfig['plugins'], { onlyPlugins }: {
3
3
  onlyPlugins?: string[];
4
4
  }): CoreConfig['plugins'];
5
- export declare function filterCategoryByOnlyPluginsOption(categories: CoreConfig['categories'], { onlyPlugins, verbose, }: {
5
+ export declare function filterCategoryByPluginSlug(categories: CoreConfig['categories'], { onlyPlugins, verbose, }: {
6
6
  onlyPlugins?: string[];
7
7
  verbose?: boolean;
8
8
  }): CoreConfig['categories'];