@nx/node 22.7.0-beta.7 → 22.7.0-beta.9
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/generators.json +31 -31
- package/migrations.json +51 -51
- package/package.json +7 -7
- package/src/generators/application/files/common/tsconfig.app.json +7 -7
- package/src/generators/application/files/common/tsconfig.json +8 -8
- package/src/generators/application/schema.json +136 -136
- package/src/generators/e2e-project/schema.json +66 -66
- package/src/generators/init/schema.json +24 -24
- package/src/generators/library/files/non-ts-solution/tsconfig.lib.json +14 -14
- package/src/generators/library/files/ts-solution/tsconfig.lib.json +18 -18
- package/src/generators/library/schema.json +131 -131
- package/src/generators/setup-docker/schema.json +35 -35
package/generators.json
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
2
|
+
"name": "nx/node",
|
|
3
|
+
"version": "0.1",
|
|
4
|
+
"extends": ["@nx/workspace"],
|
|
5
|
+
"generators": {
|
|
6
|
+
"init": {
|
|
7
|
+
"factory": "./src/generators/init/init",
|
|
8
|
+
"schema": "./src/generators/init/schema.json",
|
|
9
|
+
"description": "Initialize the `@nx/node` plugin.",
|
|
10
|
+
"aliases": ["ng-add"],
|
|
11
|
+
"hidden": true
|
|
12
|
+
},
|
|
13
|
+
"application": {
|
|
14
|
+
"factory": "./src/generators/application/application#applicationGeneratorInternal",
|
|
15
|
+
"schema": "./src/generators/application/schema.json",
|
|
16
|
+
"aliases": ["app"],
|
|
17
|
+
"x-type": "application",
|
|
18
|
+
"description": "Create a node application."
|
|
19
|
+
},
|
|
20
|
+
"library": {
|
|
21
|
+
"factory": "./src/generators/library/library#libraryGeneratorInternal",
|
|
22
|
+
"schema": "./src/generators/library/schema.json",
|
|
23
|
+
"aliases": ["lib"],
|
|
24
|
+
"x-type": "library",
|
|
25
|
+
"description": "Create a node library."
|
|
26
|
+
},
|
|
27
|
+
"setup-docker": {
|
|
28
|
+
"factory": "./src/generators/setup-docker/setup-docker",
|
|
29
|
+
"schema": "./src/generators/setup-docker/schema.json",
|
|
30
|
+
"description": "Set up Docker configuration for a project.",
|
|
31
|
+
"hidden": false
|
|
32
|
+
}
|
|
32
33
|
}
|
|
33
|
-
}
|
|
34
34
|
}
|
package/migrations.json
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
"generators": {},
|
|
3
|
+
"packageJsonUpdates": {
|
|
4
|
+
"20.4.0": {
|
|
5
|
+
"version": "20.4.0-beta.3",
|
|
6
|
+
"packages": {
|
|
7
|
+
"fastify": {
|
|
8
|
+
"version": "~5.2.1",
|
|
9
|
+
"alwaysAddToPackageJson": false
|
|
10
|
+
},
|
|
11
|
+
"fastify-plugin": {
|
|
12
|
+
"version": "~5.0.1",
|
|
13
|
+
"alwaysAddToPackageJson": false
|
|
14
|
+
},
|
|
15
|
+
"@fastify/autoload": {
|
|
16
|
+
"version": "~6.0.3",
|
|
17
|
+
"alwaysAddToPackageJson": false
|
|
18
|
+
},
|
|
19
|
+
"@fastify/sensible": {
|
|
20
|
+
"version": "~6.0.2",
|
|
21
|
+
"alwaysAddToPackageJson": false
|
|
22
|
+
},
|
|
23
|
+
"express": {
|
|
24
|
+
"version": "^4.21.2",
|
|
25
|
+
"alwaysAddToPackageJson": false
|
|
26
|
+
},
|
|
27
|
+
"@types/express": {
|
|
28
|
+
"version": "^4.17.21",
|
|
29
|
+
"alwaysAddToPackageJson": false
|
|
30
|
+
}
|
|
31
|
+
}
|
|
10
32
|
},
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
33
|
+
"22.0.2": {
|
|
34
|
+
"version": "22.0.2-beta.0",
|
|
35
|
+
"packages": {
|
|
36
|
+
"koa": {
|
|
37
|
+
"version": "^3.0.3",
|
|
38
|
+
"alwaysAddToPackageJson": false
|
|
39
|
+
},
|
|
40
|
+
"@types/koa": {
|
|
41
|
+
"version": "^3.0.0",
|
|
42
|
+
"alwaysAddToPackageJson": false
|
|
43
|
+
}
|
|
44
|
+
}
|
|
14
45
|
},
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"version": "^4.21.2",
|
|
25
|
-
"alwaysAddToPackageJson": false
|
|
26
|
-
},
|
|
27
|
-
"@types/express": {
|
|
28
|
-
"version": "^4.17.21",
|
|
29
|
-
"alwaysAddToPackageJson": false
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"22.0.2": {
|
|
34
|
-
"version": "22.0.2-beta.0",
|
|
35
|
-
"packages": {
|
|
36
|
-
"koa": {
|
|
37
|
-
"version": "^3.0.3",
|
|
38
|
-
"alwaysAddToPackageJson": false
|
|
39
|
-
},
|
|
40
|
-
"@types/koa": {
|
|
41
|
-
"version": "^3.0.0",
|
|
42
|
-
"alwaysAddToPackageJson": false
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"22.6.0": {
|
|
47
|
-
"version": "22.6.0-beta.10",
|
|
48
|
-
"x-prompt": "Bump koa to ^3.1.2 to resolve CVE-2026-27959 (Host Header Injection)",
|
|
49
|
-
"packages": {
|
|
50
|
-
"koa": {
|
|
51
|
-
"version": "^3.1.2",
|
|
52
|
-
"alwaysAddToPackageJson": false
|
|
46
|
+
"22.6.0": {
|
|
47
|
+
"version": "22.6.0-beta.10",
|
|
48
|
+
"x-prompt": "Bump koa to ^3.1.2 to resolve CVE-2026-27959 (Host Header Injection)",
|
|
49
|
+
"packages": {
|
|
50
|
+
"koa": {
|
|
51
|
+
"version": "^3.1.2",
|
|
52
|
+
"alwaysAddToPackageJson": false
|
|
53
|
+
}
|
|
54
|
+
}
|
|
53
55
|
}
|
|
54
|
-
}
|
|
55
56
|
}
|
|
56
|
-
}
|
|
57
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/node",
|
|
3
|
-
"version": "22.7.0-beta.
|
|
3
|
+
"version": "22.7.0-beta.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Node Plugin for Nx contains generators to manage Node applications within an Nx workspace.",
|
|
6
6
|
"repository": {
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"tslib": "^2.3.0",
|
|
36
|
-
"@nx/devkit": "22.7.0-beta.
|
|
37
|
-
"@nx/jest": "22.7.0-beta.
|
|
38
|
-
"@nx/js": "22.7.0-beta.
|
|
39
|
-
"@nx/eslint": "22.7.0-beta.
|
|
40
|
-
"@nx/docker": "22.7.0-beta.
|
|
36
|
+
"@nx/devkit": "22.7.0-beta.9",
|
|
37
|
+
"@nx/jest": "22.7.0-beta.9",
|
|
38
|
+
"@nx/js": "22.7.0-beta.9",
|
|
39
|
+
"@nx/eslint": "22.7.0-beta.9",
|
|
40
|
+
"@nx/docker": "22.7.0-beta.9",
|
|
41
41
|
"tcp-port-used": "^1.0.2",
|
|
42
42
|
"kill-port": "^1.6.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"nx": "22.7.0-beta.
|
|
45
|
+
"nx": "22.7.0-beta.9"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "<%= offset %>dist/out-tsc",
|
|
5
|
+
"module": "commonjs",
|
|
6
|
+
"types": ["node"]
|
|
7
|
+
},
|
|
8
|
+
"include": ["src/**/*.ts"]
|
|
9
9
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
"extends": "<%= rootTsConfigPath %>",
|
|
3
|
+
"files": [],
|
|
4
|
+
"include": [],
|
|
5
|
+
"references": [
|
|
6
|
+
{
|
|
7
|
+
"path": "./tsconfig.app.json"
|
|
8
|
+
}
|
|
9
|
+
]
|
|
10
10
|
}
|
|
@@ -1,138 +1,138 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "SchematicsNxNodeApp",
|
|
5
|
+
"title": "Nx Application Options Schema",
|
|
6
|
+
"description": "Nx Application Options Schema.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"directory": {
|
|
10
|
+
"description": "The directory of the new application.",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"$default": {
|
|
13
|
+
"$source": "argv",
|
|
14
|
+
"index": 0
|
|
15
|
+
},
|
|
16
|
+
"x-prompt": "Which directory do you want to create the application in?"
|
|
17
|
+
},
|
|
18
|
+
"name": {
|
|
19
|
+
"description": "The name of the application.",
|
|
20
|
+
"type": "string",
|
|
21
|
+
"pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
|
|
22
|
+
"x-priority": "important"
|
|
23
|
+
},
|
|
24
|
+
"skipFormat": {
|
|
25
|
+
"description": "Skip formatting files",
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"default": false,
|
|
28
|
+
"x-priority": "internal"
|
|
29
|
+
},
|
|
30
|
+
"skipPackageJson": {
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"default": false,
|
|
33
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
34
|
+
"x-priority": "internal"
|
|
35
|
+
},
|
|
36
|
+
"linter": {
|
|
37
|
+
"description": "The tool to use for running lint checks.",
|
|
38
|
+
"type": "string",
|
|
39
|
+
"enum": ["eslint", "none"],
|
|
40
|
+
"default": "none",
|
|
41
|
+
"x-prompt": "Which linter would you like to use?",
|
|
42
|
+
"x-priority": "important"
|
|
43
|
+
},
|
|
44
|
+
"unitTestRunner": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": ["jest", "none"],
|
|
47
|
+
"description": "Test runner to use for unit tests.",
|
|
48
|
+
"default": "none",
|
|
49
|
+
"x-priority": "important",
|
|
50
|
+
"x-prompt": "Which unit test runner would you like to use?"
|
|
51
|
+
},
|
|
52
|
+
"e2eTestRunner": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"enum": ["jest", "none"],
|
|
55
|
+
"description": "Test runner to use for end-to-end tests",
|
|
56
|
+
"default": "none",
|
|
57
|
+
"x-priority": "important",
|
|
58
|
+
"x-prompt": "Which end-to-end test runner would you like to use?"
|
|
59
|
+
},
|
|
60
|
+
"tags": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "Add tags to the application (used for linting)."
|
|
63
|
+
},
|
|
64
|
+
"frontendProject": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"description": "Frontend project that needs to access this application. This sets up proxy configuration.",
|
|
67
|
+
"x-priority": "important",
|
|
68
|
+
"x-dropdown": "projects"
|
|
69
|
+
},
|
|
70
|
+
"swcJest": {
|
|
71
|
+
"type": "boolean",
|
|
72
|
+
"description": "Use `@swc/jest` instead `ts-jest` for faster test compilation."
|
|
73
|
+
},
|
|
74
|
+
"babelJest": {
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"description": "Use `babel` instead `ts-jest`.",
|
|
77
|
+
"default": false,
|
|
78
|
+
"x-deprecated": "Use --swcJest instead for faster compilation"
|
|
79
|
+
},
|
|
80
|
+
"js": {
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"description": "Generate JavaScript files rather than TypeScript files.",
|
|
83
|
+
"default": false
|
|
84
|
+
},
|
|
85
|
+
"setParserOptionsProject": {
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
|
|
88
|
+
"default": false
|
|
89
|
+
},
|
|
90
|
+
"standaloneConfig": {
|
|
91
|
+
"description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
|
|
92
|
+
"type": "boolean",
|
|
93
|
+
"default": true,
|
|
94
|
+
"x-deprecated": "Nx only supports standaloneConfig"
|
|
95
|
+
},
|
|
96
|
+
"bundler": {
|
|
97
|
+
"description": "Bundler which is used to package the application",
|
|
98
|
+
"type": "string",
|
|
99
|
+
"enum": ["esbuild", "webpack"],
|
|
100
|
+
"default": "esbuild",
|
|
101
|
+
"x-priority": "important"
|
|
102
|
+
},
|
|
103
|
+
"framework": {
|
|
104
|
+
"description": "Generate the node application using a framework",
|
|
105
|
+
"type": "string",
|
|
106
|
+
"enum": ["express", "fastify", "koa", "nest", "none"],
|
|
107
|
+
"default": "none",
|
|
108
|
+
"x-prompt": "Which framework do you want to use?",
|
|
109
|
+
"x-priority": "important"
|
|
110
|
+
},
|
|
111
|
+
"port": {
|
|
112
|
+
"description": "The port which the server will be run on",
|
|
113
|
+
"type": "number",
|
|
114
|
+
"default": 3000
|
|
115
|
+
},
|
|
116
|
+
"rootProject": {
|
|
117
|
+
"description": "Create node application at the root of the workspace",
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"default": false,
|
|
120
|
+
"hidden": true,
|
|
121
|
+
"x-priority": "internal"
|
|
122
|
+
},
|
|
123
|
+
"docker": {
|
|
124
|
+
"type": "boolean",
|
|
125
|
+
"description": "Add a docker build target"
|
|
126
|
+
},
|
|
127
|
+
"skipDockerPlugin": {
|
|
128
|
+
"type": "boolean",
|
|
129
|
+
"description": "Skip the @nx/docker plugin and use the legacy docker build target instead.",
|
|
130
|
+
"default": false
|
|
131
|
+
},
|
|
132
|
+
"useProjectJson": {
|
|
133
|
+
"type": "boolean",
|
|
134
|
+
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"required": ["directory"]
|
|
138
138
|
}
|
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "SchematicsNxNodeE2eProject",
|
|
5
|
+
"title": "Node E2E Project Generator",
|
|
6
|
+
"description": "Generate an E2E project for a Node server application.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"project": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "The name of the project.",
|
|
12
|
+
"$default": { "$source": "argv", "index": 0 },
|
|
13
|
+
"x-dropdown": "project",
|
|
14
|
+
"x-prompt": "What project is this for?"
|
|
15
|
+
},
|
|
16
|
+
"directory": {
|
|
17
|
+
"description": "The directory of the e2e project.",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"x-priority": "important"
|
|
20
|
+
},
|
|
21
|
+
"name": {
|
|
22
|
+
"description": "The name of the e2e project. Defaults to the project name with '-e2e' suffix.",
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"projectType": {
|
|
26
|
+
"description": "The type of application that is being tested.",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": ["server", "cli"],
|
|
29
|
+
"default": "server"
|
|
30
|
+
},
|
|
31
|
+
"port": {
|
|
32
|
+
"description": "The port that the server runs on. Only application for server application.",
|
|
33
|
+
"type": "number",
|
|
34
|
+
"default": 3000
|
|
35
|
+
},
|
|
36
|
+
"linter": {
|
|
37
|
+
"description": "Linter to be used for the E2E project",
|
|
38
|
+
"type": "string",
|
|
39
|
+
"enum": ["eslint", "none"],
|
|
40
|
+
"default": "eslint"
|
|
41
|
+
},
|
|
42
|
+
"isNest": {
|
|
43
|
+
"description": "Is the E2E server project nest",
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"default": false,
|
|
46
|
+
"hidden": true,
|
|
47
|
+
"x-priority": "internal"
|
|
48
|
+
},
|
|
49
|
+
"rootProject": {
|
|
50
|
+
"description": "Create node application at the root of the workspace.",
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"default": false,
|
|
53
|
+
"hidden": true,
|
|
54
|
+
"x-priority": "internal"
|
|
55
|
+
},
|
|
56
|
+
"skipFormat": {
|
|
57
|
+
"description": "Skip formatting files.",
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"default": false,
|
|
60
|
+
"hidden": true,
|
|
61
|
+
"x-priority": "internal"
|
|
62
|
+
},
|
|
63
|
+
"useProjectJson": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
|
|
66
|
+
}
|
|
15
67
|
},
|
|
16
|
-
"
|
|
17
|
-
"description": "The directory of the e2e project.",
|
|
18
|
-
"type": "string",
|
|
19
|
-
"x-priority": "important"
|
|
20
|
-
},
|
|
21
|
-
"name": {
|
|
22
|
-
"description": "The name of the e2e project. Defaults to the project name with '-e2e' suffix.",
|
|
23
|
-
"type": "string"
|
|
24
|
-
},
|
|
25
|
-
"projectType": {
|
|
26
|
-
"description": "The type of application that is being tested.",
|
|
27
|
-
"type": "string",
|
|
28
|
-
"enum": ["server", "cli"],
|
|
29
|
-
"default": "server"
|
|
30
|
-
},
|
|
31
|
-
"port": {
|
|
32
|
-
"description": "The port that the server runs on. Only application for server application.",
|
|
33
|
-
"type": "number",
|
|
34
|
-
"default": 3000
|
|
35
|
-
},
|
|
36
|
-
"linter": {
|
|
37
|
-
"description": "Linter to be used for the E2E project",
|
|
38
|
-
"type": "string",
|
|
39
|
-
"enum": ["eslint", "none"],
|
|
40
|
-
"default": "eslint"
|
|
41
|
-
},
|
|
42
|
-
"isNest": {
|
|
43
|
-
"description": "Is the E2E server project nest",
|
|
44
|
-
"type": "boolean",
|
|
45
|
-
"default": false,
|
|
46
|
-
"hidden": true,
|
|
47
|
-
"x-priority": "internal"
|
|
48
|
-
},
|
|
49
|
-
"rootProject": {
|
|
50
|
-
"description": "Create node application at the root of the workspace.",
|
|
51
|
-
"type": "boolean",
|
|
52
|
-
"default": false,
|
|
53
|
-
"hidden": true,
|
|
54
|
-
"x-priority": "internal"
|
|
55
|
-
},
|
|
56
|
-
"skipFormat": {
|
|
57
|
-
"description": "Skip formatting files.",
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"default": false,
|
|
60
|
-
"hidden": true,
|
|
61
|
-
"x-priority": "internal"
|
|
62
|
-
},
|
|
63
|
-
"useProjectJson": {
|
|
64
|
-
"type": "boolean",
|
|
65
|
-
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"required": ["project"]
|
|
68
|
+
"required": ["project"]
|
|
69
69
|
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "NxNodeInit",
|
|
5
|
+
"title": "Init Node Plugin",
|
|
6
|
+
"description": "Init Node Plugin.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"skipFormat": {
|
|
10
|
+
"description": "Skip formatting files.",
|
|
11
|
+
"type": "boolean",
|
|
12
|
+
"default": false
|
|
13
|
+
},
|
|
14
|
+
"skipPackageJson": {
|
|
15
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"default": false
|
|
18
|
+
},
|
|
19
|
+
"keepExistingVersions": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"x-priority": "internal",
|
|
22
|
+
"description": "Keep existing dependencies versions",
|
|
23
|
+
"default": false
|
|
24
|
+
}
|
|
13
25
|
},
|
|
14
|
-
"
|
|
15
|
-
"description": "Do not add dependencies to `package.json`.",
|
|
16
|
-
"type": "boolean",
|
|
17
|
-
"default": false
|
|
18
|
-
},
|
|
19
|
-
"keepExistingVersions": {
|
|
20
|
-
"type": "boolean",
|
|
21
|
-
"x-priority": "internal",
|
|
22
|
-
"description": "Keep existing dependencies versions",
|
|
23
|
-
"default": false
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"required": []
|
|
26
|
+
"required": []
|
|
27
27
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"outDir": "<%= offsetFromRoot %>dist/out-tsc",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"types": ["node"]
|
|
8
|
+
},
|
|
9
|
+
"exclude": [
|
|
10
|
+
"jest.config.ts",
|
|
11
|
+
"jest.config.cts",
|
|
12
|
+
"src/**/*.spec.ts",
|
|
13
|
+
"src/**/*.test.ts"
|
|
14
|
+
],
|
|
15
|
+
"include": ["src/**/*.ts"]
|
|
16
16
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"baseUrl": ".",
|
|
5
|
+
"rootDir": "src",
|
|
6
|
+
"module": "nodenext",
|
|
7
|
+
"moduleResolution": "nodenext",
|
|
8
|
+
"outDir": "dist",
|
|
9
|
+
"tsBuildInfoFile": "dist/tsconfig.lib.tsbuildinfo",
|
|
10
|
+
"emitDeclarationOnly": false,
|
|
11
|
+
"types": ["node"]
|
|
12
|
+
},
|
|
13
|
+
"exclude": [
|
|
14
|
+
"jest.config.ts",
|
|
15
|
+
"jest.config.cts",
|
|
16
|
+
"src/**/*.spec.ts",
|
|
17
|
+
"src/**/*.test.ts"
|
|
18
|
+
],
|
|
19
|
+
"include": ["src/**/*.ts"]
|
|
20
20
|
}
|
|
@@ -1,133 +1,133 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "NxNodeLibrary",
|
|
5
|
+
"title": "Create a Node Library for Nx",
|
|
6
|
+
"description": "Create a Node Library for an Nx workspace.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"examples": [
|
|
9
|
+
{
|
|
10
|
+
"command": "nx g lib mylib --directory=myapp",
|
|
11
|
+
"description": "Generate `libs/myapp/mylib`"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"directory": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "A directory where the lib is placed",
|
|
18
|
+
"alias": "dir",
|
|
19
|
+
"$default": {
|
|
20
|
+
"$source": "argv",
|
|
21
|
+
"index": 0
|
|
22
|
+
},
|
|
23
|
+
"x-prompt": "Which directory do you want to create the library in?"
|
|
24
|
+
},
|
|
25
|
+
"name": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Library name",
|
|
28
|
+
"pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
|
|
29
|
+
"x-priority": "important"
|
|
30
|
+
},
|
|
31
|
+
"simpleModuleName": {
|
|
32
|
+
"description": "Keep the module name simple.",
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": false
|
|
35
|
+
},
|
|
36
|
+
"linter": {
|
|
37
|
+
"description": "The tool to use for running lint checks.",
|
|
38
|
+
"type": "string",
|
|
39
|
+
"enum": ["eslint", "none"],
|
|
40
|
+
"default": "none",
|
|
41
|
+
"x-prompt": "Which linter would you like to use?",
|
|
42
|
+
"x-priority": "important"
|
|
43
|
+
},
|
|
44
|
+
"unitTestRunner": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": ["jest", "none"],
|
|
47
|
+
"description": "Test runner to use for unit tests.",
|
|
48
|
+
"default": "none",
|
|
49
|
+
"x-prompt": "Which unit test runner would you like to use?",
|
|
50
|
+
"x-priority": "important"
|
|
51
|
+
},
|
|
52
|
+
"tags": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "Add tags to the library (used for linting).",
|
|
55
|
+
"alias": "t"
|
|
56
|
+
},
|
|
57
|
+
"skipFormat": {
|
|
58
|
+
"description": "Skip formatting files.",
|
|
59
|
+
"type": "boolean",
|
|
60
|
+
"default": false,
|
|
61
|
+
"x-priority": "internal"
|
|
62
|
+
},
|
|
63
|
+
"skipTsConfig": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"default": false,
|
|
66
|
+
"description": "Do not update `tsconfig.base.json` for development experience.",
|
|
67
|
+
"x-priority": "internal"
|
|
68
|
+
},
|
|
69
|
+
"publishable": {
|
|
70
|
+
"type": "boolean",
|
|
71
|
+
"description": "Create a publishable library.",
|
|
72
|
+
"x-priority": "important"
|
|
73
|
+
},
|
|
74
|
+
"buildable": {
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"default": true,
|
|
77
|
+
"description": "Generate a buildable library.",
|
|
78
|
+
"x-priority": "important"
|
|
79
|
+
},
|
|
80
|
+
"compiler": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"enum": ["tsc", "swc"],
|
|
83
|
+
"default": "tsc",
|
|
84
|
+
"description": "The compiler used by the build and test targets.",
|
|
85
|
+
"x-priority": "important"
|
|
86
|
+
},
|
|
87
|
+
"importPath": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"description": "The library name used to import it, like `@myorg/my-awesome-lib`. Must be a valid npm name."
|
|
90
|
+
},
|
|
91
|
+
"rootDir": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"description": "Sets the `rootDir` for TypeScript compilation. When not defined, it uses the project's root property, or `srcRootForCompilationRoot` if it is defined."
|
|
94
|
+
},
|
|
95
|
+
"testEnvironment": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"enum": ["jsdom", "node"],
|
|
98
|
+
"description": "The test environment to use if `unitTestRunner` is set to `jest`.",
|
|
99
|
+
"default": "jsdom"
|
|
100
|
+
},
|
|
101
|
+
"babelJest": {
|
|
102
|
+
"type": "boolean",
|
|
103
|
+
"description": "Use `babel` instead of `ts-jest`.",
|
|
104
|
+
"default": false
|
|
105
|
+
},
|
|
106
|
+
"js": {
|
|
107
|
+
"type": "boolean",
|
|
108
|
+
"description": "Generate JavaScript files rather than TypeScript files.",
|
|
109
|
+
"default": false
|
|
110
|
+
},
|
|
111
|
+
"strict": {
|
|
112
|
+
"type": "boolean",
|
|
113
|
+
"description": "Whether to enable tsconfig strict mode or not.",
|
|
114
|
+
"default": false
|
|
115
|
+
},
|
|
116
|
+
"standaloneConfig": {
|
|
117
|
+
"description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"default": true,
|
|
120
|
+
"x-deprecated": "Nx only supports standaloneConfig"
|
|
121
|
+
},
|
|
122
|
+
"setParserOptionsProject": {
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"description": "Whether or not to configure the ESLint `parserOptions.project`. We do not do this by default for lint performance reasons.",
|
|
125
|
+
"default": false
|
|
126
|
+
},
|
|
127
|
+
"useProjectJson": {
|
|
128
|
+
"type": "boolean",
|
|
129
|
+
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"required": ["directory"]
|
|
133
133
|
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "SchematicsNxSetupDocker",
|
|
5
|
+
"title": "Nx Node Docker Options Schema",
|
|
6
|
+
"description": "Nx Node Docker Options Schema.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"project": {
|
|
10
|
+
"description": "The name of the project",
|
|
11
|
+
"$default": {
|
|
12
|
+
"$source": "projectName"
|
|
13
|
+
},
|
|
14
|
+
"type": "string",
|
|
15
|
+
"x-prompt": "What project would you like to add a Dockerfile to?",
|
|
16
|
+
"x-priority": "important"
|
|
17
|
+
},
|
|
18
|
+
"targetName": {
|
|
19
|
+
"description": "The name of the target to create",
|
|
20
|
+
"type": "string",
|
|
21
|
+
"default": "docker:build"
|
|
22
|
+
},
|
|
23
|
+
"buildTargetName": {
|
|
24
|
+
"description": "The name of the build target",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"default": "build"
|
|
27
|
+
},
|
|
28
|
+
"outputPath": {
|
|
29
|
+
"description": "The output path for the node application",
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"skipDockerPlugin": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"description": "Skip the @nx/docker plugin and use the legacy docker build target instead.",
|
|
35
|
+
"default": false
|
|
36
|
+
}
|
|
36
37
|
}
|
|
37
|
-
}
|
|
38
38
|
}
|