@nx/express 20.0.0-canary.20241001-8fa7065 → 20.0.0-canary.20241002-1d10a19
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/express",
|
3
|
-
"version": "20.0.0-canary.
|
3
|
+
"version": "20.0.0-canary.20241002-1d10a19",
|
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,8 +31,8 @@
|
|
31
31
|
"migrations": "./migrations.json"
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
|
-
"@nx/devkit": "20.0.0-canary.
|
35
|
-
"@nx/node": "20.0.0-canary.
|
34
|
+
"@nx/devkit": "20.0.0-canary.20241002-1d10a19",
|
35
|
+
"@nx/node": "20.0.0-canary.20241002-1d10a19",
|
36
36
|
"tslib": "^2.3.0"
|
37
37
|
},
|
38
38
|
"peerDependencies": {
|
@@ -71,13 +71,12 @@ async function applicationGeneratorInternal(tree, schema) {
|
|
71
71
|
}
|
72
72
|
exports.default = applicationGenerator;
|
73
73
|
async function normalizeOptions(host, options) {
|
74
|
-
|
74
|
+
await (0, project_name_and_root_utils_1.ensureProjectName)(host, options, 'application');
|
75
|
+
const { projectName: appProjectName, projectRoot: appProjectRoot } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(host, {
|
75
76
|
name: options.name,
|
76
77
|
projectType: 'application',
|
77
78
|
directory: options.directory,
|
78
|
-
projectNameAndRootFormat: options.projectNameAndRootFormat,
|
79
79
|
});
|
80
|
-
options.projectNameAndRootFormat = projectNameAndRootFormat;
|
81
80
|
const nxJson = (0, devkit_1.readNxJson)(host);
|
82
81
|
const addPlugin = process.env.NX_ADD_PLUGINS !== 'false' &&
|
83
82
|
nxJson.useInferencePlugins !== false;
|
@@ -1,13 +1,11 @@
|
|
1
|
-
import type { ProjectNameAndRootFormat } from '@nx/devkit/src/generators/project-name-and-root-utils';
|
2
1
|
import type { Linter, LinterType } from '@nx/eslint';
|
3
2
|
import type { UnitTestRunner } from '../../utils/test-runners';
|
4
3
|
|
5
4
|
export interface Schema {
|
6
|
-
|
5
|
+
directory: string;
|
6
|
+
name?: string;
|
7
7
|
skipFormat: boolean;
|
8
8
|
skipPackageJson: boolean;
|
9
|
-
directory?: string;
|
10
|
-
projectNameAndRootFormat?: ProjectNameAndRootFormat;
|
11
9
|
unitTestRunner: UnitTestRunner;
|
12
10
|
tags?: string;
|
13
11
|
linter: Linter | LinterType;
|
@@ -6,25 +6,20 @@
|
|
6
6
|
"description": "Nx Application Options Schema.",
|
7
7
|
"type": "object",
|
8
8
|
"properties": {
|
9
|
-
"
|
10
|
-
"description": "The
|
9
|
+
"directory": {
|
10
|
+
"description": "The directory of the new application.",
|
11
11
|
"type": "string",
|
12
12
|
"$default": {
|
13
13
|
"$source": "argv",
|
14
14
|
"index": 0
|
15
15
|
},
|
16
|
-
"x-prompt": "
|
17
|
-
"pattern": "^[a-zA-Z][^:]*$"
|
16
|
+
"x-prompt": "Which directory do you want to create the application in?"
|
18
17
|
},
|
19
|
-
"
|
20
|
-
"description": "The
|
18
|
+
"name": {
|
19
|
+
"description": "The name of the application.",
|
20
|
+
"pattern": "^[a-zA-Z][^:]*$",
|
21
21
|
"type": "string"
|
22
22
|
},
|
23
|
-
"projectNameAndRootFormat": {
|
24
|
-
"description": "Whether to generate the project name and root directory as provided (`as-provided`) or generate them composing their values and taking the configured layout into account (`derived`).",
|
25
|
-
"type": "string",
|
26
|
-
"enum": ["as-provided", "derived"]
|
27
|
-
},
|
28
23
|
"skipFormat": {
|
29
24
|
"description": "Skip formatting files.",
|
30
25
|
"type": "boolean",
|
@@ -71,17 +66,11 @@
|
|
71
66
|
"description": "Generate JavaScript files rather than TypeScript files.",
|
72
67
|
"default": false
|
73
68
|
},
|
74
|
-
"standaloneConfig": {
|
75
|
-
"description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
|
76
|
-
"type": "boolean",
|
77
|
-
"default": true,
|
78
|
-
"x-deprecated": "Nx only supports standaloneConfig"
|
79
|
-
},
|
80
69
|
"setParserOptionsProject": {
|
81
70
|
"type": "boolean",
|
82
71
|
"description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
|
83
72
|
"default": false
|
84
73
|
}
|
85
74
|
},
|
86
|
-
"required": []
|
75
|
+
"required": ["directory"]
|
87
76
|
}
|