@code-pushup/nx-plugin 0.76.0 → 0.78.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/package.json +5 -5
- package/src/executors/cli/executor.js +14 -11
- package/src/executors/cli/executor.js.map +1 -1
- package/src/executors/internal/cli.d.ts +7 -1
- package/src/executors/internal/cli.js +19 -2
- package/src/executors/internal/cli.js.map +1 -1
- package/src/index.d.ts +7 -3
- package/src/index.js +9 -2
- package/src/index.js.map +1 -1
- package/src/plugin/index.d.ts +1 -1
- package/src/plugin/index.js +2 -1
- package/src/plugin/index.js.map +1 -1
- package/src/plugin/plugin.d.ts +3 -1
- package/src/plugin/plugin.js +18 -1
- package/src/plugin/plugin.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-pushup/nx-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.78.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Nx plugin to integrate the Code PushUp CLI into your workspace 🛠️",
|
|
6
6
|
"publishConfig": {
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"generators": "./generators.json",
|
|
33
33
|
"executors": "./executors.json",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@code-pushup/models": "0.
|
|
36
|
-
"@code-pushup/utils": "0.
|
|
37
|
-
"@nx/devkit": "
|
|
35
|
+
"@code-pushup/models": "0.78.0",
|
|
36
|
+
"@code-pushup/utils": "0.78.0",
|
|
37
|
+
"@nx/devkit": ">=17.0.0",
|
|
38
38
|
"ansis": "^3.3.0",
|
|
39
|
-
"nx": "
|
|
39
|
+
"nx": ">=17.0.0",
|
|
40
40
|
"zod": "^4.0.5"
|
|
41
41
|
},
|
|
42
42
|
"files": [
|
|
@@ -2,17 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = runAutorunExecutor;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const
|
|
5
|
+
const execute_process_js_1 = require("../../internal/execute-process.js");
|
|
6
6
|
const cli_js_1 = require("../internal/cli.js");
|
|
7
7
|
const context_js_1 = require("../internal/context.js");
|
|
8
8
|
const utils_js_1 = require("./utils.js");
|
|
9
|
-
function runAutorunExecutor(terminalAndExecutorOptions, context) {
|
|
9
|
+
async function runAutorunExecutor(terminalAndExecutorOptions, context) {
|
|
10
10
|
const normalizedContext = (0, context_js_1.normalizeContext)(context);
|
|
11
11
|
const mergedOptions = (0, utils_js_1.mergeExecutorOptions)(context.target?.options, terminalAndExecutorOptions);
|
|
12
12
|
const cliArgumentObject = (0, utils_js_1.parseAutorunExecutorOptions)(mergedOptions, normalizedContext);
|
|
13
13
|
const { dryRun, verbose, command } = mergedOptions;
|
|
14
|
-
const commandString = (0, cli_js_1.
|
|
15
|
-
|
|
14
|
+
const commandString = (0, cli_js_1.createCliCommandString)({
|
|
15
|
+
command,
|
|
16
|
+
args: cliArgumentObject,
|
|
17
|
+
});
|
|
16
18
|
if (verbose) {
|
|
17
19
|
devkit_1.logger.info(`Run CLI executor ${command ?? ''}`);
|
|
18
20
|
devkit_1.logger.info(`Command: ${commandString}`);
|
|
@@ -22,22 +24,23 @@ function runAutorunExecutor(terminalAndExecutorOptions, context) {
|
|
|
22
24
|
}
|
|
23
25
|
else {
|
|
24
26
|
try {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
await (0, execute_process_js_1.executeProcess)({
|
|
28
|
+
...(0, cli_js_1.createCliCommandObject)({ command, args: cliArgumentObject }),
|
|
29
|
+
...(context.cwd ? { cwd: context.cwd } : {}),
|
|
30
|
+
});
|
|
28
31
|
}
|
|
29
32
|
catch (error) {
|
|
30
33
|
devkit_1.logger.error(error);
|
|
31
|
-
return
|
|
34
|
+
return {
|
|
32
35
|
success: false,
|
|
33
36
|
command: commandString,
|
|
34
37
|
error: error,
|
|
35
|
-
}
|
|
38
|
+
};
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
|
-
return
|
|
41
|
+
return {
|
|
39
42
|
success: true,
|
|
40
43
|
command: commandString,
|
|
41
|
-
}
|
|
44
|
+
};
|
|
42
45
|
}
|
|
43
46
|
//# sourceMappingURL=executor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../src/executors/cli/executor.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../src/executors/cli/executor.ts"],"names":[],"mappings":";;AAgBA,qCA2CC;AA3DD,uCAA0D;AAC1D,0EAAmE;AACnE,+CAG4B;AAC5B,uDAA0D;AAE1D,yCAA+E;AAQhE,KAAK,UAAU,kBAAkB,CAC9C,0BAAyD,EACzD,OAAwB;IAExB,MAAM,iBAAiB,GAAG,IAAA,6BAAgB,EAAC,OAAO,CAAC,CAAC;IACpD,MAAM,aAAa,GAAG,IAAA,+BAAoB,EACxC,OAAO,CAAC,MAAM,EAAE,OAAO,EACvB,0BAA0B,CAC3B,CAAC;IACF,MAAM,iBAAiB,GAAG,IAAA,sCAA2B,EACnD,aAAa,EACb,iBAAiB,CAClB,CAAC;IACF,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,aAAa,CAAC;IACnD,MAAM,aAAa,GAAG,IAAA,+BAAsB,EAAC;QAC3C,OAAO;QACP,IAAI,EAAE,iBAAiB;KACxB,CAAC,CAAC;IACH,IAAI,OAAO,EAAE,CAAC;QACZ,eAAM,CAAC,IAAI,CAAC,oBAAoB,OAAO,IAAI,EAAE,EAAE,CAAC,CAAC;QACjD,eAAM,CAAC,IAAI,CAAC,YAAY,aAAa,EAAE,CAAC,CAAC;IAC3C,CAAC;IACD,IAAI,MAAM,EAAE,CAAC;QACX,eAAM,CAAC,IAAI,CAAC,wBAAwB,aAAa,EAAE,CAAC,CAAC;IACvD,CAAC;SAAM,CAAC;QACN,IAAI,CAAC;YACH,MAAM,IAAA,mCAAc,EAAC;gBACnB,GAAG,IAAA,+BAAsB,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;gBAC/D,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAC7C,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,eAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACpB,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,aAAa;gBACtB,KAAK,EAAE,KAAc;aACtB,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO;QACL,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,aAAa;KACvB,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ProcessConfig } from '../../internal/execute-process.js';
|
|
2
|
+
export declare function createCliCommandString(options?: {
|
|
2
3
|
args?: Record<string, unknown>;
|
|
3
4
|
command?: string;
|
|
4
5
|
bin?: string;
|
|
5
6
|
}): string;
|
|
7
|
+
export declare function createCliCommandObject(options?: {
|
|
8
|
+
args?: Record<string, unknown>;
|
|
9
|
+
command?: string;
|
|
10
|
+
bin?: string;
|
|
11
|
+
}): ProcessConfig;
|
|
6
12
|
type ArgumentValue = number | string | boolean | string[];
|
|
7
13
|
export type CliArgsObject<T extends object = Record<string, ArgumentValue>> = T extends never ? Record<string, ArgumentValue | undefined> | {
|
|
8
14
|
_: string;
|
|
@@ -1,11 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createCliCommandString = createCliCommandString;
|
|
4
|
+
exports.createCliCommandObject = createCliCommandObject;
|
|
4
5
|
exports.objectToCliArgs = objectToCliArgs;
|
|
5
|
-
|
|
6
|
+
const devkit_1 = require("@nx/devkit");
|
|
7
|
+
function createCliCommandString(options) {
|
|
6
8
|
const { bin = '@code-pushup/cli', command, args } = options ?? {};
|
|
7
9
|
return `npx ${bin} ${objectToCliArgs({ _: command ?? [], ...args }).join(' ')}`;
|
|
8
10
|
}
|
|
11
|
+
function createCliCommandObject(options) {
|
|
12
|
+
const { bin = '@code-pushup/cli', command, args } = options ?? {};
|
|
13
|
+
return {
|
|
14
|
+
command: 'npx',
|
|
15
|
+
args: [bin, ...objectToCliArgs({ _: command ?? [], ...args })],
|
|
16
|
+
observer: {
|
|
17
|
+
onError: error => {
|
|
18
|
+
devkit_1.logger.error(error.message);
|
|
19
|
+
},
|
|
20
|
+
onStdout: data => {
|
|
21
|
+
devkit_1.logger.log(data);
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
}
|
|
9
26
|
// @TODO import from @code-pushup/utils => get rid of poppins for cjs support
|
|
10
27
|
function objectToCliArgs(params) {
|
|
11
28
|
if (!params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/executors/internal/cli.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/executors/internal/cli.ts"],"names":[],"mappings":";;AAGA,wDASC;AAED,wDAkBC;AASD,0CA8CC;AAvFD,uCAAoC;AAGpC,SAAgB,sBAAsB,CAAC,OAItC;IACC,MAAM,EAAE,GAAG,GAAG,kBAAkB,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;IAClE,OAAO,OAAO,GAAG,IAAI,eAAe,CAAC,EAAE,CAAC,EAAE,OAAO,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC,IAAI,CACtE,GAAG,CACJ,EAAE,CAAC;AACN,CAAC;AAED,SAAgB,sBAAsB,CAA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
+
createNodes: import("@nx/devkit").CreateNodes;
|
|
5
|
+
};
|
|
6
|
+
export default plugin;
|
|
3
7
|
export type { AutorunCommandExecutorOptions } from './executors/cli/schema.js';
|
|
4
8
|
export { objectToCliArgs } from './executors/internal/cli.js';
|
|
5
9
|
export { generateCodePushupConfig } from './generators/configuration/code-pushup-config.js';
|
|
@@ -9,4 +13,4 @@ export { initGenerator, initSchematic } from './generators/init/generator.js';
|
|
|
9
13
|
export { type InitGeneratorSchema } from './generators/init/schema.js';
|
|
10
14
|
export { executeProcess, type ProcessConfig, } from './internal/execute-process.js';
|
|
11
15
|
export * from './internal/versions.js';
|
|
12
|
-
export { createNodes } from './plugin/index.js';
|
|
16
|
+
export { createNodes, createNodesV2 } from './plugin/index.js';
|
package/src/index.js
CHANGED
|
@@ -14,10 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.createNodes = exports.executeProcess = exports.initSchematic = exports.initGenerator = exports.configurationGenerator = exports.generateCodePushupConfig = exports.objectToCliArgs = void 0;
|
|
17
|
+
exports.createNodesV2 = exports.createNodes = exports.executeProcess = exports.initSchematic = exports.initGenerator = exports.configurationGenerator = exports.generateCodePushupConfig = exports.objectToCliArgs = void 0;
|
|
18
18
|
const index_js_1 = require("./plugin/index.js");
|
|
19
19
|
// default export for nx.json#plugins
|
|
20
|
-
|
|
20
|
+
const plugin = {
|
|
21
|
+
name: '@code-pushup/nx-plugin',
|
|
22
|
+
createNodesV2: index_js_1.createNodesV2,
|
|
23
|
+
// Keep for backwards compatibility with Nx < 21
|
|
24
|
+
createNodes: index_js_1.createNodes,
|
|
25
|
+
};
|
|
26
|
+
exports.default = plugin;
|
|
21
27
|
var cli_js_1 = require("./executors/internal/cli.js");
|
|
22
28
|
Object.defineProperty(exports, "objectToCliArgs", { enumerable: true, get: function () { return cli_js_1.objectToCliArgs; } });
|
|
23
29
|
var code_pushup_config_js_1 = require("./generators/configuration/code-pushup-config.js");
|
|
@@ -32,4 +38,5 @@ Object.defineProperty(exports, "executeProcess", { enumerable: true, get: functi
|
|
|
32
38
|
__exportStar(require("./internal/versions.js"), exports);
|
|
33
39
|
var index_js_2 = require("./plugin/index.js");
|
|
34
40
|
Object.defineProperty(exports, "createNodes", { enumerable: true, get: function () { return index_js_2.createNodes; } });
|
|
41
|
+
Object.defineProperty(exports, "createNodesV2", { enumerable: true, get: function () { return index_js_2.createNodesV2; } });
|
|
35
42
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA+D;AAE/D,qCAAqC;AACrC,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,wBAAwB;IAC9B,aAAa,EAAb,wBAAa;IACb,gDAAgD;IAChD,WAAW,EAAX,sBAAW;CACZ,CAAC;AAEF,kBAAe,MAAM,CAAC;AAGtB,sDAA8D;AAArD,yGAAA,eAAe,OAAA;AACxB,0FAA4F;AAAnF,iIAAA,wBAAwB,OAAA;AACjC,wEAAiF;AAAxE,sHAAA,sBAAsB,OAAA;AAE/B,+DAA8E;AAArE,6GAAA,aAAa,OAAA;AAAE,6GAAA,aAAa,OAAA;AAErC,oEAGuC;AAFrC,oHAAA,cAAc,OAAA;AAGhB,yDAAuC;AACvC,8CAA+D;AAAtD,uGAAA,WAAW,OAAA;AAAE,yGAAA,aAAa,OAAA"}
|
package/src/plugin/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createNodes } from './plugin.js';
|
|
1
|
+
export { createNodes, createNodesV2 } from './plugin.js';
|
|
2
2
|
export type { CreateNodesOptions } from './types.js';
|
package/src/plugin/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createNodes = void 0;
|
|
3
|
+
exports.createNodesV2 = exports.createNodes = void 0;
|
|
4
4
|
var plugin_js_1 = require("./plugin.js");
|
|
5
5
|
Object.defineProperty(exports, "createNodes", { enumerable: true, get: function () { return plugin_js_1.createNodes; } });
|
|
6
|
+
Object.defineProperty(exports, "createNodesV2", { enumerable: true, get: function () { return plugin_js_1.createNodesV2; } });
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
package/src/plugin/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugin/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugin/index.ts"],"names":[],"mappings":";;;AAAA,yCAAyD;AAAhD,wGAAA,WAAW,OAAA;AAAE,0GAAA,aAAa,OAAA"}
|
package/src/plugin/plugin.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import type { CreateNodes } from '@nx/devkit';
|
|
1
|
+
import type { CreateNodes, CreateNodesV2 } from '@nx/devkit';
|
|
2
|
+
import type { CreateNodesOptions } from './types.js';
|
|
2
3
|
export declare const createNodes: CreateNodes;
|
|
4
|
+
export declare const createNodesV2: CreateNodesV2<CreateNodesOptions>;
|
package/src/plugin/plugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createNodes = void 0;
|
|
3
|
+
exports.createNodesV2 = exports.createNodes = void 0;
|
|
4
4
|
const constants_js_1 = require("../internal/constants.js");
|
|
5
5
|
const targets_js_1 = require("./target/targets.js");
|
|
6
6
|
const utils_js_1 = require("./utils.js");
|
|
@@ -19,4 +19,21 @@ exports.createNodes = [
|
|
|
19
19
|
};
|
|
20
20
|
},
|
|
21
21
|
];
|
|
22
|
+
exports.createNodesV2 = [
|
|
23
|
+
`**/${constants_js_1.PROJECT_JSON_FILE_NAME}`,
|
|
24
|
+
async (projectConfigurationFiles, createNodesOptions, context) => {
|
|
25
|
+
const parsedCreateNodesOptions = createNodesOptions;
|
|
26
|
+
return await Promise.all(projectConfigurationFiles.map(async (projectConfigurationFile) => {
|
|
27
|
+
const normalizedContext = await (0, utils_js_1.normalizedCreateNodesV2Context)(context, projectConfigurationFile, parsedCreateNodesOptions);
|
|
28
|
+
const result = {
|
|
29
|
+
projects: {
|
|
30
|
+
[normalizedContext.projectRoot]: {
|
|
31
|
+
targets: await (0, targets_js_1.createTargets)(normalizedContext),
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
return [projectConfigurationFile, result];
|
|
36
|
+
}));
|
|
37
|
+
},
|
|
38
|
+
];
|
|
22
39
|
//# sourceMappingURL=plugin.js.map
|
package/src/plugin/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/plugin/plugin.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/plugin/plugin.ts"],"names":[],"mappings":";;;AAQA,2DAAkE;AAClE,oDAAoD;AAEpD,yCAGoB;AAEpB,2DAA2D;AAC9C,QAAA,WAAW,GAAgB;IACtC,MAAM,qCAAsB,EAAE;IAC9B,KAAK,EACH,wBAAgC,EAChC,kBAA2B,EAC3B,OAA2B,EACC,EAAE;QAC9B,MAAM,wBAAwB,GAAG,kBAAwC,CAAC;QAC1E,MAAM,iBAAiB,GAAG,MAAM,IAAA,uCAA4B,EAC1D,OAAO,EACP,wBAAwB,EACxB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