@nx/express 20.2.2 → 20.3.0-beta.1
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/express",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.3.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Express contains executors and generators for allowing your workspace to create powerful Express Node applications and APIs.",
|
|
6
6
|
"repository": {
|
|
@@ -31,9 +31,8 @@
|
|
|
31
31
|
"migrations": "./migrations.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@nx/devkit": "20.
|
|
35
|
-
"@nx/
|
|
36
|
-
"@nx/node": "20.2.2",
|
|
34
|
+
"@nx/devkit": "20.3.0-beta.1",
|
|
35
|
+
"@nx/node": "20.3.0-beta.1",
|
|
37
36
|
"tslib": "^2.3.0"
|
|
38
37
|
},
|
|
39
38
|
"peerDependencies": {
|
|
@@ -4,7 +4,6 @@ exports.applicationGenerator = applicationGenerator;
|
|
|
4
4
|
exports.applicationGeneratorInternal = applicationGeneratorInternal;
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
|
|
7
|
-
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
8
7
|
const node_1 = require("@nx/node");
|
|
9
8
|
const versions_1 = require("@nx/node/src/utils/versions");
|
|
10
9
|
const path_1 = require("path");
|
|
@@ -50,7 +49,6 @@ async function applicationGenerator(tree, schema) {
|
|
|
50
49
|
});
|
|
51
50
|
}
|
|
52
51
|
async function applicationGeneratorInternal(tree, schema) {
|
|
53
|
-
(0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(tree, 'express', 'application');
|
|
54
52
|
const options = await normalizeOptions(tree, schema);
|
|
55
53
|
const tasks = [];
|
|
56
54
|
const initTask = await (0, init_1.initGenerator)(tree, { ...options, skipFormat: true });
|
|
@@ -33,14 +33,17 @@
|
|
|
33
33
|
"linter": {
|
|
34
34
|
"description": "The tool to use for running lint checks.",
|
|
35
35
|
"type": "string",
|
|
36
|
-
"enum": ["eslint"],
|
|
37
|
-
"default": "
|
|
36
|
+
"enum": ["eslint", "none"],
|
|
37
|
+
"default": "none",
|
|
38
|
+
"x-prompt": "Which linter would you like to use?",
|
|
39
|
+
"x-priority": "important"
|
|
38
40
|
},
|
|
39
41
|
"unitTestRunner": {
|
|
40
42
|
"type": "string",
|
|
41
43
|
"enum": ["jest", "none"],
|
|
42
44
|
"description": "Test runner to use for unit tests.",
|
|
43
|
-
"default": "
|
|
45
|
+
"default": "none",
|
|
46
|
+
"x-prompt": "Which unit test runner would you like to use?"
|
|
44
47
|
},
|
|
45
48
|
"tags": {
|
|
46
49
|
"type": "string",
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.initGenerator = initGenerator;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
6
5
|
const versions_1 = require("../../utils/versions");
|
|
7
6
|
function updateDependencies(tree, schema) {
|
|
8
7
|
const tasks = [];
|
|
@@ -11,7 +10,6 @@ function updateDependencies(tree, schema) {
|
|
|
11
10
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
12
11
|
}
|
|
13
12
|
async function initGenerator(tree, schema) {
|
|
14
|
-
(0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(tree, 'express', 'init');
|
|
15
13
|
let installTask = () => { };
|
|
16
14
|
if (!schema.skipPackageJson) {
|
|
17
15
|
installTask = updateDependencies(tree, schema);
|