@nrwl/nx-plugin 14.7.10 → 14.7.12
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/CHANGELOG.md +1 -1
- package/package.json +6 -6
- package/src/generators/executor/files/executor/__fileName__/executor.ts__tmpl__ +2 -2
- package/src/generators/generator/files/generator/__fileName__/generator.spec.ts__tmpl__ +1 -1
- package/src/generators/generator/files/generator/__fileName__/generator.ts__tmpl__ +1 -1
- package/src/generators/plugin/plugin.js +11 -9
- package/src/generators/plugin/plugin.js.map +1 -1
- package/src/generators/plugin/schema.d.ts +1 -0
- package/src/generators/plugin/schema.json +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [14.7.
|
|
6
|
+
## [14.7.12](https://github.com/nrwl/nx/compare/14.7.11...14.7.12) (2022-09-23)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @nrwl/nx-plugin
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/nx-plugin",
|
|
3
|
-
"version": "14.7.
|
|
3
|
+
"version": "14.7.12",
|
|
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,10 +28,10 @@
|
|
|
28
28
|
"migrations": "./migrations.json"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@nrwl/devkit": "14.7.
|
|
32
|
-
"@nrwl/jest": "14.7.
|
|
33
|
-
"@nrwl/js": "14.7.
|
|
34
|
-
"@nrwl/linter": "14.7.
|
|
31
|
+
"@nrwl/devkit": "14.7.12",
|
|
32
|
+
"@nrwl/jest": "14.7.12",
|
|
33
|
+
"@nrwl/js": "14.7.12",
|
|
34
|
+
"@nrwl/linter": "14.7.12",
|
|
35
35
|
"dotenv": "~10.0.0",
|
|
36
36
|
"fs-extra": "^10.1.0",
|
|
37
37
|
"tslib": "^2.3.0"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
42
|
"typings": "./index.d.ts",
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "6b841501205904ad226018644fd072c95d6b8940"
|
|
44
44
|
}
|
|
@@ -3,9 +3,9 @@ import { <%= className %>ExecutorSchema } from './schema';
|
|
|
3
3
|
export default async function runExecutor(
|
|
4
4
|
options: <%= className %>ExecutorSchema,
|
|
5
5
|
) {
|
|
6
|
-
console.log('Executor ran for <%= className %>', options)
|
|
6
|
+
console.log('Executor ran for <%= className %>', options);
|
|
7
7
|
return {
|
|
8
8
|
success: true
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -14,7 +14,7 @@ interface NormalizedSchema extends <%= className %>GeneratorSchema {
|
|
|
14
14
|
projectName: string;
|
|
15
15
|
projectRoot: string;
|
|
16
16
|
projectDirectory: string;
|
|
17
|
-
parsedTags: string[]
|
|
17
|
+
parsedTags: string[];
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
function normalizeOptions(tree: Tree, options: <%= className %>GeneratorSchema): NormalizedSchema {
|
|
@@ -4,8 +4,8 @@ exports.pluginSchematic = exports.pluginGenerator = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const devkit_1 = require("@nrwl/devkit");
|
|
6
6
|
const js_1 = require("@nrwl/js");
|
|
7
|
-
const linter_1 = require("@nrwl/linter");
|
|
8
7
|
const add_swc_dependencies_1 = require("@nrwl/js/src/utils/swc/add-swc-dependencies");
|
|
8
|
+
const linter_1 = require("@nrwl/linter");
|
|
9
9
|
const versions_1 = require("nx/src/utils/versions");
|
|
10
10
|
const path = require("path");
|
|
11
11
|
const versions_2 = require("../../utils/versions");
|
|
@@ -83,14 +83,16 @@ function pluginGenerator(host, schema) {
|
|
|
83
83
|
(0, add_swc_dependencies_1.addSwcDependencies)(host);
|
|
84
84
|
yield addFiles(host, options);
|
|
85
85
|
updateWorkspaceJson(host, options);
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
86
|
+
if (options.e2eTestRunner !== 'none') {
|
|
87
|
+
yield (0, e2e_1.e2eProjectGenerator)(host, {
|
|
88
|
+
pluginName: options.name,
|
|
89
|
+
projectDirectory: options.projectDirectory,
|
|
90
|
+
pluginOutputPath: `dist/${options.libsDir}/${options.projectDirectory}`,
|
|
91
|
+
npmPackageName: options.npmPackageName,
|
|
92
|
+
standaloneConfig: (_a = options.standaloneConfig) !== null && _a !== void 0 ? _a : true,
|
|
93
|
+
minimal: (_b = options.minimal) !== null && _b !== void 0 ? _b : false,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
94
96
|
if (options.linter === linter_1.Linter.EsLint && !options.skipLintChecks) {
|
|
95
97
|
yield (0, generator_2.default)(host, { projectName: options.name });
|
|
96
98
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/generators/plugin/plugin.ts"],"names":[],"mappings":";;;;AAAA,yCAUsB;AACtB,iCAA4C;AAC5C,yCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/generators/plugin/plugin.ts"],"names":[],"mappings":";;;;AAAA,yCAUsB;AACtB,iCAA4C;AAC5C,sFAAiF;AACjF,yCAAsC;AACtC,oDAAuD;AACvD,6BAA6B;AAE7B,mDAA+D;AAC/D,4CAAyD;AACzD,mDAAyD;AACzD,sDAA4D;AAC5D,wDAAgE;AAChE,+DAA8E;AAI9E,SAAe,QAAQ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AmB,EAAC,IAAI,EAAE;gBAC9B,UAAU,EAAE,OAAO,CAAC,IAAI;gBACxB,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;gBAC1C,gBAAgB,EAAE,QAAQ,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,gBAAgB,EAAE;gBACvE,cAAc,EAAE,OAAO,CAAC,cAAc;gBACtC,gBAAgB,EAAE,MAAA,OAAO,CAAC,gBAAgB,mCAAI,IAAI;gBAClD,OAAO,EAAE,MAAA,OAAO,CAAC,OAAO,mCAAI,KAAK;aAClC,CAAC,CAAC;SACJ;QAED,IAAI,OAAO,CAAC,MAAM,KAAK,eAAM,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE;YAC/D,MAAM,IAAA,mBAAwB,EAAC,IAAI,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;SACrE;QAED,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAExB,OAAO,GAAG,EAAE,CAAC,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;;CACxC;AA/CD,0CA+CC;AAED,kBAAe,eAAe,CAAC;AAClB,QAAA,eAAe,GAAG,IAAA,2BAAkB,EAAC,eAAe,CAAC,CAAC"}
|
|
@@ -63,6 +63,12 @@
|
|
|
63
63
|
"default": false,
|
|
64
64
|
"description": "Do not eslint configuration for plugin json files."
|
|
65
65
|
},
|
|
66
|
+
"e2eTestRunner": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"enum": ["jest", "none"],
|
|
69
|
+
"description": "Test runner to use for end to end (E2E) tests.",
|
|
70
|
+
"default": "jest"
|
|
71
|
+
},
|
|
66
72
|
"standaloneConfig": {
|
|
67
73
|
"description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
|
|
68
74
|
"type": "boolean"
|