@nx/plugin 22.3.0-canary.20251215-e864b6a → 22.3.0-canary.20251217-6323dba
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 +6 -6
- package/src/generators/plugin/plugin.js +1 -1
- package/src/generators/plugin/schema.d.ts +1 -0
- package/src/generators/plugin/schema.json +4 -0
- package/src/generators/plugin/utils/normalize-schema.d.ts +1 -0
- package/src/generators/plugin/utils/normalize-schema.d.ts.map +1 -1
- package/src/generators/plugin/utils/normalize-schema.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/plugin",
|
|
3
|
-
"version": "22.3.0-canary.
|
|
3
|
+
"version": "22.3.0-canary.20251217-6323dba",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "This plugin is used to create Nx plugins! It contains generators for generating common plugin features like generators, executors, migrations and more.",
|
|
6
6
|
"repository": {
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"tslib": "^2.3.0",
|
|
31
|
-
"@nx/devkit": "22.3.0-canary.
|
|
32
|
-
"@nx/jest": "22.3.0-canary.
|
|
33
|
-
"@nx/js": "22.3.0-canary.
|
|
34
|
-
"@nx/eslint": "22.3.0-canary.
|
|
31
|
+
"@nx/devkit": "22.3.0-canary.20251217-6323dba",
|
|
32
|
+
"@nx/jest": "22.3.0-canary.20251217-6323dba",
|
|
33
|
+
"@nx/js": "22.3.0-canary.20251217-6323dba",
|
|
34
|
+
"@nx/eslint": "22.3.0-canary.20251217-6323dba"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"nx": "22.3.0-canary.
|
|
37
|
+
"nx": "22.3.0-canary.20251217-6323dba"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
@@ -89,7 +89,7 @@ async function pluginGeneratorInternal(host, schema) {
|
|
|
89
89
|
if (options.e2eTestRunner !== 'none') {
|
|
90
90
|
tasks.push(await (0, e2e_1.e2eProjectGenerator)(host, {
|
|
91
91
|
pluginName: options.projectName,
|
|
92
|
-
projectDirectory: options.
|
|
92
|
+
projectDirectory: options.e2eProjectDirectory,
|
|
93
93
|
pluginOutputPath: (0, devkit_1.joinPathFragments)('dist', options.rootProject ? options.projectName : options.projectRoot),
|
|
94
94
|
npmPackageName: options.importPath,
|
|
95
95
|
skipFormat: true,
|
|
@@ -8,6 +8,7 @@ export interface Schema {
|
|
|
8
8
|
skipFormat?: boolean; // default is false
|
|
9
9
|
skipLintChecks?: boolean; // default is false
|
|
10
10
|
e2eTestRunner?: 'jest' | 'none';
|
|
11
|
+
e2eProjectDirectory?: string;
|
|
11
12
|
tags?: string;
|
|
12
13
|
unitTestRunner?: 'jest' | 'vitest' | 'none';
|
|
13
14
|
linter?: Linter | LinterType;
|
|
@@ -71,6 +71,10 @@
|
|
|
71
71
|
"description": "Test runner to use for end to end (E2E) tests.",
|
|
72
72
|
"default": "none"
|
|
73
73
|
},
|
|
74
|
+
"e2eProjectDirectory": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"description": "A directory where the plugin E2E project is placed."
|
|
77
|
+
},
|
|
74
78
|
"standaloneConfig": {
|
|
75
79
|
"description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
|
|
76
80
|
"type": "boolean",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-schema.d.ts","sourceRoot":"","sources":["../../../../../../../packages/plugin/src/generators/plugin/utils/normalize-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAKnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAS7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,WAAW,gBAAiB,SAAQ,MAAM;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,GAAG,KAAK,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3C,MAAM,EAAE,UAAU,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"normalize-schema.d.ts","sourceRoot":"","sources":["../../../../../../../packages/plugin/src/generators/plugin/utils/normalize-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAKnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAS7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,WAAW,gBAAiB,SAAQ,MAAM;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,GAAG,KAAK,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3C,MAAM,EAAE,UAAU,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CAwD3B"}
|
|
@@ -38,6 +38,7 @@ async function normalizeOptions(host, options) {
|
|
|
38
38
|
projectName: isTsSolutionSetup && !options.name ? importPath : projectName,
|
|
39
39
|
projectRoot,
|
|
40
40
|
projectDirectory,
|
|
41
|
+
e2eProjectDirectory: options.e2eProjectDirectory ?? projectDirectory,
|
|
41
42
|
parsedTags,
|
|
42
43
|
importPath,
|
|
43
44
|
publishable: options.publishable ?? false,
|