@code-pushup/cli 0.26.1 → 0.28.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.
- package/README.md +15 -0
- package/index.js +1088 -336
- package/package.json +2 -3
- package/src/lib/autorun/autorun-command.d.ts +0 -1
- package/src/lib/compare/compare-command.d.ts +7 -0
- package/src/lib/implementation/compare.model.d.ts +2 -0
- package/src/lib/implementation/compare.options.d.ts +3 -0
- package/src/lib/implementation/logging.d.ts +0 -4
- package/src/lib/implementation/only-plugins.middleware.d.ts +1 -3
- package/src/lib/implementation/only-plugins.model.d.ts +5 -2
- package/src/lib/implementation/only-plugins.utils.d.ts +5 -9
- package/src/lib/options.d.ts +6 -0
- package/src/lib/print-config/print-config-command.d.ts +0 -3
- package/src/lib/yargs-cli.d.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-pushup/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"code-pushup": "index.js"
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"@code-pushup/core": "*",
|
|
11
11
|
"yargs": "^17.7.2",
|
|
12
12
|
"chalk": "^5.3.0",
|
|
13
|
-
"@code-pushup/utils": "*"
|
|
14
|
-
"@poppinss/cliui": "^6.3.0"
|
|
13
|
+
"@code-pushup/utils": "*"
|
|
15
14
|
},
|
|
16
15
|
"homepage": "https://github.com/code-pushup/cli#readme",
|
|
17
16
|
"bugs": {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CompareOptions } from '../implementation/compare.model';
|
|
2
|
+
export declare function yargsCompareCommandObject(): {
|
|
3
|
+
command: string;
|
|
4
|
+
describe: string;
|
|
5
|
+
builder: Record<keyof CompareOptions, import("yargs").Options>;
|
|
6
|
+
handler: (args: unknown) => Promise<void>;
|
|
7
|
+
};
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { cliui } from '@poppinss/cliui';
|
|
2
|
-
export type CliUi = ReturnType<typeof cliui>;
|
|
3
|
-
export declare let singletonUiInstance: CliUi | undefined;
|
|
4
|
-
export declare function ui(): CliUi;
|
|
5
1
|
export declare function renderConfigureCategoriesHint(): void;
|
|
6
2
|
export declare function uploadSuccessfulLog(url: string): void;
|
|
7
3
|
export declare function collectSuccessfulLog(): void;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { CoreConfig } from '@code-pushup/models';
|
|
2
|
-
import { GeneralCliOptions } from './global.model';
|
|
3
1
|
import { OnlyPluginsOptions } from './only-plugins.model';
|
|
4
|
-
export declare function onlyPluginsMiddleware<T extends
|
|
2
|
+
export declare function onlyPluginsMiddleware<T extends OnlyPluginsOptions>(originalProcessArgs: T): T;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { GlobalOptions } from '@code-pushup/core';
|
|
2
|
+
import { CoreConfig } from '@code-pushup/models';
|
|
3
|
+
export type OnlyPluginsCliOptions = {
|
|
4
|
+
onlyPlugins?: string[];
|
|
3
5
|
};
|
|
6
|
+
export type OnlyPluginsOptions = Partial<GlobalOptions> & Pick<CoreConfig, 'categories' | 'plugins'> & OnlyPluginsCliOptions;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import type { CategoryConfig,
|
|
2
|
-
export declare function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
onlyPlugins?: string[];
|
|
7
|
-
verbose?: boolean;
|
|
8
|
-
}): CategoryConfig[];
|
|
9
|
-
export declare function validateOnlyPluginsOption(plugins: CoreConfig['plugins'], { onlyPlugins, verbose, }: {
|
|
1
|
+
import type { CategoryConfig, PluginConfig } from '@code-pushup/models';
|
|
2
|
+
export declare function validateOnlyPluginsOption({ plugins, categories, }: {
|
|
3
|
+
plugins: PluginConfig[];
|
|
4
|
+
categories: CategoryConfig[];
|
|
5
|
+
}, { onlyPlugins, verbose, }?: {
|
|
10
6
|
onlyPlugins?: string[];
|
|
11
7
|
verbose?: boolean;
|
|
12
8
|
}): void;
|
package/src/lib/options.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const options: {
|
|
2
|
+
onlyPlugins: import("yargs").Options;
|
|
2
3
|
"persist.outputDir": import("yargs").Options;
|
|
3
4
|
"persist.filename": import("yargs").Options;
|
|
4
5
|
"persist.format": import("yargs").Options;
|
|
@@ -11,3 +12,8 @@ export declare const options: {
|
|
|
11
12
|
verbose: import("yargs").Options;
|
|
12
13
|
config: import("yargs").Options;
|
|
13
14
|
};
|
|
15
|
+
export declare const groups: {
|
|
16
|
+
'Global Options:': string[];
|
|
17
|
+
'Persist Options:': string[];
|
|
18
|
+
'Upload Options:': string[];
|
|
19
|
+
};
|
package/src/lib/yargs-cli.d.ts
CHANGED
|
@@ -14,6 +14,10 @@ export declare function yargsCli<T = unknown>(argv: string[], cfg: {
|
|
|
14
14
|
options?: {
|
|
15
15
|
[key: string]: Options;
|
|
16
16
|
};
|
|
17
|
+
groups?: {
|
|
18
|
+
[key: string]: string[];
|
|
19
|
+
};
|
|
20
|
+
examples?: [string, string][];
|
|
17
21
|
middlewares?: {
|
|
18
22
|
middlewareFunction: unknown;
|
|
19
23
|
applyBeforeValidation?: boolean;
|