@nrwl/nx-plugin 15.8.0-beta.1 → 15.8.0-beta.3
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/executors/e2e/e2e.impl.js +29 -15
- package/src/executors/e2e/e2e.impl.js.map +1 -1
- package/src/generators/e2e-project/e2e.d.ts +2 -1
- package/src/generators/e2e-project/e2e.js +26 -3
- package/src/generators/e2e-project/e2e.js.map +1 -1
- package/src/generators/e2e-project/schema.d.ts +3 -0
- package/src/generators/e2e-project/schema.json +6 -0
- package/src/generators/plugin/schema.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/nx-plugin",
|
|
3
|
-
"version": "15.8.0-beta.
|
|
3
|
+
"version": "15.8.0-beta.3",
|
|
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": "15.8.0-beta.
|
|
32
|
-
"@nrwl/jest": "15.8.0-beta.
|
|
33
|
-
"@nrwl/js": "15.8.0-beta.
|
|
34
|
-
"@nrwl/linter": "15.8.0-beta.
|
|
31
|
+
"@nrwl/devkit": "15.8.0-beta.3",
|
|
32
|
+
"@nrwl/jest": "15.8.0-beta.3",
|
|
33
|
+
"@nrwl/js": "15.8.0-beta.3",
|
|
34
|
+
"@nrwl/linter": "15.8.0-beta.3",
|
|
35
35
|
"dotenv": "~10.0.0",
|
|
36
36
|
"fs-extra": "^11.1.0",
|
|
37
37
|
"tslib": "^2.3.0"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "cbf33c478661e0c4f4795f9986a2357b641cc497"
|
|
43
43
|
}
|
|
@@ -7,25 +7,32 @@ const devkit_1 = require("@nrwl/devkit");
|
|
|
7
7
|
const jest_impl_1 = require("@nrwl/jest/src/executors/jest/jest.impl");
|
|
8
8
|
function nxPluginE2EExecutor(options, context) {
|
|
9
9
|
return tslib_1.__asyncGenerator(this, arguments, function* nxPluginE2EExecutor_1() {
|
|
10
|
-
var e_1,
|
|
10
|
+
var _a, e_1, _b, _c;
|
|
11
11
|
const { target } = options, jestOptions = tslib_1.__rest(options, ["target"]);
|
|
12
12
|
let success;
|
|
13
13
|
try {
|
|
14
|
-
for (var
|
|
15
|
-
|
|
14
|
+
for (var _d = true, _e = tslib_1.__asyncValues(runBuildTarget(target, context)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a;) {
|
|
15
|
+
_c = _f.value;
|
|
16
|
+
_d = false;
|
|
16
17
|
try {
|
|
17
|
-
|
|
18
|
+
const _ = _c;
|
|
19
|
+
try {
|
|
20
|
+
success = yield tslib_1.__await(runTests(jestOptions, context));
|
|
21
|
+
}
|
|
22
|
+
catch (e) {
|
|
23
|
+
devkit_1.logger.error(e.message);
|
|
24
|
+
success = false;
|
|
25
|
+
}
|
|
18
26
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
success = false;
|
|
27
|
+
finally {
|
|
28
|
+
_d = true;
|
|
22
29
|
}
|
|
23
30
|
}
|
|
24
31
|
}
|
|
25
32
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
26
33
|
finally {
|
|
27
34
|
try {
|
|
28
|
-
if (
|
|
35
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
29
36
|
}
|
|
30
37
|
finally { if (e_1) throw e_1.error; }
|
|
31
38
|
}
|
|
@@ -35,22 +42,29 @@ function nxPluginE2EExecutor(options, context) {
|
|
|
35
42
|
exports.nxPluginE2EExecutor = nxPluginE2EExecutor;
|
|
36
43
|
function runBuildTarget(buildTarget, context) {
|
|
37
44
|
return tslib_1.__asyncGenerator(this, arguments, function* runBuildTarget_1() {
|
|
38
|
-
var e_2,
|
|
45
|
+
var _a, e_2, _b, _c;
|
|
39
46
|
const { project, target, configuration } = (0, devkit_1.parseTargetString)(buildTarget);
|
|
40
47
|
const buildTargetOptions = (0, devkit_1.readTargetOptions)({ project, target, configuration }, context);
|
|
41
48
|
const targetSupportsWatch = Object.keys(buildTargetOptions).includes('watch');
|
|
42
49
|
try {
|
|
43
|
-
for (var
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
for (var _d = true, _e = tslib_1.__asyncValues(yield tslib_1.__await((0, devkit_1.runExecutor)({ project, target, configuration }, targetSupportsWatch ? { watch: false } : {}, context))), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a;) {
|
|
51
|
+
_c = _f.value;
|
|
52
|
+
_d = false;
|
|
53
|
+
try {
|
|
54
|
+
const output = _c;
|
|
55
|
+
if (!output.success)
|
|
56
|
+
throw new Error('Could not compile application files.');
|
|
57
|
+
yield yield tslib_1.__await(output.success);
|
|
58
|
+
}
|
|
59
|
+
finally {
|
|
60
|
+
_d = true;
|
|
61
|
+
}
|
|
48
62
|
}
|
|
49
63
|
}
|
|
50
64
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
51
65
|
finally {
|
|
52
66
|
try {
|
|
53
|
-
if (
|
|
67
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
54
68
|
}
|
|
55
69
|
finally { if (e_2) throw e_2.error; }
|
|
56
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e2e.impl.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/executors/e2e/e2e.impl.ts"],"names":[],"mappings":";;;;AAAA,yBAAuB;AAIvB,yCAKsB;AAEtB,uEAAuE;AAGvE,SAAuB,mBA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AM,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;;YAE9E,KAA2B,eAAA,KAAA,sBAAA,sBAAM,IAAA,oBAAW,EAC1C,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,EAClC,mBAAmB,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,EAC3C,OAAO,CACR,CAAA,CAAA,IAAA;gBAJ0B,cAI1B;gBAJ0B,WAI1B;;oBAJU,MAAM,MAAM,KAAA,CAAA;oBAKrB,IAAI,CAAC,MAAM,CAAC,OAAO;wBACjB,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;oBAC1D,4BAAM,MAAM,CAAC,OAAO,CAAA,CAAC;;;;;aACtB;;;;;;;;;IACH,CAAC;CAAA;AAED,SAAe,QAAQ,CACrB,WAAgC,EAChC,OAAwB;;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAA,wBAAY,kCAC/B,WAAW,KAAE,KAAK,EAAE,KAAK,KAC9B,OAAO,CACR,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA;AAED,kBAAe,mBAAmB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { GeneratorCallback } from '@nrwl/devkit';
|
|
1
2
|
import type { Tree } from '@nrwl/devkit';
|
|
2
3
|
import type { Schema } from './schema';
|
|
3
|
-
export declare function e2eProjectGenerator(host: Tree, schema: Schema): Promise<
|
|
4
|
+
export declare function e2eProjectGenerator(host: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
4
5
|
export default e2eProjectGenerator;
|
|
5
6
|
export declare const e2eProjectSchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -6,8 +6,10 @@ const devkit_1 = require("@nrwl/devkit");
|
|
|
6
6
|
const jest_1 = require("@nrwl/jest");
|
|
7
7
|
const js_1 = require("@nrwl/js");
|
|
8
8
|
const path = require("path");
|
|
9
|
+
const linter_1 = require("@nrwl/linter");
|
|
10
|
+
const run_tasks_in_serial_1 = require("@nrwl/workspace/src/utilities/run-tasks-in-serial");
|
|
9
11
|
function normalizeOptions(host, options) {
|
|
10
|
-
var _a;
|
|
12
|
+
var _a, _b;
|
|
11
13
|
const { layoutDirectory, projectDirectory } = (0, devkit_1.extractLayoutDirectory)(options.projectDirectory);
|
|
12
14
|
const { npmScope, appsDir: defaultAppsDir } = (0, devkit_1.getWorkspaceLayout)(host);
|
|
13
15
|
const appsDir = layoutDirectory !== null && layoutDirectory !== void 0 ? layoutDirectory : defaultAppsDir;
|
|
@@ -16,8 +18,7 @@ function normalizeOptions(host, options) {
|
|
|
16
18
|
? (0, devkit_1.joinPathFragments)(appsDir, `${projectDirectory}-e2e`)
|
|
17
19
|
: (0, devkit_1.joinPathFragments)(appsDir, projectName);
|
|
18
20
|
const pluginPropertyName = (0, devkit_1.names)(options.pluginName).propertyName;
|
|
19
|
-
return Object.assign(Object.assign({}, options), { minimal: (_a = options.minimal) !== null && _a !== void 0 ? _a : false, projectName,
|
|
20
|
-
pluginPropertyName,
|
|
21
|
+
return Object.assign(Object.assign({}, options), { minimal: (_a = options.minimal) !== null && _a !== void 0 ? _a : false, projectName, linter: (_b = options.linter) !== null && _b !== void 0 ? _b : linter_1.Linter.EsLint, pluginPropertyName,
|
|
21
22
|
projectRoot,
|
|
22
23
|
npmScope });
|
|
23
24
|
}
|
|
@@ -64,14 +65,36 @@ function addJest(host, options) {
|
|
|
64
65
|
(0, devkit_1.updateProjectConfiguration)(host, options.projectName, project);
|
|
65
66
|
});
|
|
66
67
|
}
|
|
68
|
+
function addLintingToApplication(tree, options) {
|
|
69
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
const lintTask = yield (0, linter_1.lintProjectGenerator)(tree, {
|
|
71
|
+
linter: options.linter,
|
|
72
|
+
project: options.projectName,
|
|
73
|
+
tsConfigPaths: [
|
|
74
|
+
(0, devkit_1.joinPathFragments)(options.projectRoot, 'tsconfig.app.json'),
|
|
75
|
+
],
|
|
76
|
+
eslintFilePatterns: [`${options.projectRoot}/**/*.ts`],
|
|
77
|
+
unitTestRunner: 'jest',
|
|
78
|
+
skipFormat: true,
|
|
79
|
+
setParserOptionsProject: false,
|
|
80
|
+
});
|
|
81
|
+
return lintTask;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
67
84
|
function e2eProjectGenerator(host, schema) {
|
|
68
85
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
const tasks = [];
|
|
69
87
|
validatePlugin(host, schema.pluginName);
|
|
70
88
|
const options = normalizeOptions(host, schema);
|
|
71
89
|
addFiles(host, options);
|
|
72
90
|
updateWorkspaceConfiguration(host, options);
|
|
73
91
|
yield addJest(host, options);
|
|
92
|
+
if (options.linter !== linter_1.Linter.None) {
|
|
93
|
+
const lintTask = yield addLintingToApplication(host, Object.assign({}, options));
|
|
94
|
+
tasks.push(lintTask);
|
|
95
|
+
}
|
|
74
96
|
yield (0, devkit_1.formatFiles)(host);
|
|
97
|
+
return (0, run_tasks_in_serial_1.runTasksInSerial)(...tasks);
|
|
75
98
|
});
|
|
76
99
|
}
|
|
77
100
|
exports.e2eProjectGenerator = e2eProjectGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e2e.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/generators/e2e-project/e2e.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"e2e.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/generators/e2e-project/e2e.ts"],"names":[],"mappings":";;;;AAAA,yCAYsB;AAEtB,qCAAkD;AAClD,iCAAyD;AACzD,6BAA6B;AAG7B,yCAA4D;AAC5D,2FAAqF;AAUrF,SAAS,gBAAgB,CAAC,IAAU,EAAE,OAAe;;IACnD,MAAM,EAAE,eAAe,EAAE,gBAAgB,EAAE,G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AAmB,CAAC,CAAC"}
|
|
@@ -35,6 +35,12 @@
|
|
|
35
35
|
"default": true,
|
|
36
36
|
"x-deprecated": "Nx only supports standaloneConfig"
|
|
37
37
|
},
|
|
38
|
+
"linter": {
|
|
39
|
+
"description": "The tool to use for running lint checks.",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"enum": ["eslint", "none"],
|
|
42
|
+
"default": "eslint"
|
|
43
|
+
},
|
|
38
44
|
"minimal": {
|
|
39
45
|
"type": "boolean",
|
|
40
46
|
"description": "Generate the e2e project with a minimal setup. This would involve not generating tests for a default executor and generator.",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"type": "object",
|
|
8
8
|
"examples": [
|
|
9
9
|
{
|
|
10
|
-
"command": "g plugin my-plugin --directory=plugins --importPath=@myorg/my-plugin",
|
|
10
|
+
"command": "nx g plugin my-plugin --directory=plugins --importPath=@myorg/my-plugin",
|
|
11
11
|
"description": "Generate `libs/plugins/my-plugin`"
|
|
12
12
|
}
|
|
13
13
|
],
|