@nx/workspace 21.2.2 → 21.3.0-beta.0
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/workspace",
|
3
|
-
"version": "21.
|
3
|
+
"version": "21.3.0-beta.0",
|
4
4
|
"private": false,
|
5
5
|
"description": "The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.",
|
6
6
|
"repository": {
|
@@ -38,14 +38,14 @@
|
|
38
38
|
}
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
-
"@nx/devkit": "21.
|
41
|
+
"@nx/devkit": "21.3.0-beta.0",
|
42
42
|
"@zkochan/js-yaml": "0.0.7",
|
43
43
|
"chalk": "^4.1.0",
|
44
44
|
"enquirer": "~2.3.6",
|
45
45
|
"picomatch": "4.0.2",
|
46
46
|
"tslib": "^2.3.0",
|
47
47
|
"yargs-parser": "21.1.1",
|
48
|
-
"nx": "21.
|
48
|
+
"nx": "21.3.0-beta.0"
|
49
49
|
},
|
50
50
|
"publishConfig": {
|
51
51
|
"access": "public"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Tree } from '@nx/devkit';
|
1
|
+
import { PackageManager, Tree } from '@nx/devkit';
|
2
2
|
import { Linter, LinterType } from '../../utils/lint';
|
3
3
|
interface Schema {
|
4
4
|
directory: string;
|
@@ -14,18 +14,18 @@ interface Schema {
|
|
14
14
|
nextAppDir?: boolean;
|
15
15
|
nextSrcDir?: boolean;
|
16
16
|
linter?: Linter | LinterType;
|
17
|
-
bundler?:
|
17
|
+
bundler?: 'vite' | 'webpack' | 'rspack';
|
18
18
|
standaloneApi?: boolean;
|
19
19
|
routing?: boolean;
|
20
20
|
useReactRouter?: boolean;
|
21
|
-
packageManager?:
|
22
|
-
unitTestRunner?:
|
23
|
-
e2eTestRunner?:
|
21
|
+
packageManager?: PackageManager;
|
22
|
+
unitTestRunner?: 'jest' | 'vitest' | 'none';
|
23
|
+
e2eTestRunner?: 'cypress' | 'playwright' | 'detox' | 'jest' | 'none';
|
24
24
|
ssr?: boolean;
|
25
25
|
prefix?: string;
|
26
26
|
useGitHub?: boolean;
|
27
27
|
nxCloud?: 'yes' | 'skip' | 'circleci' | 'github';
|
28
|
-
formatter?:
|
28
|
+
formatter?: 'none' | 'prettier';
|
29
29
|
workspaces?: boolean;
|
30
30
|
workspaceGlobs?: string | string[];
|
31
31
|
useProjectJson?: boolean;
|
@@ -55,15 +55,18 @@
|
|
55
55
|
"linter": {
|
56
56
|
"description": "The tool to use for running lint checks.",
|
57
57
|
"type": "string",
|
58
|
+
"enum": ["eslint", "none"],
|
58
59
|
"default": "eslint"
|
59
60
|
},
|
60
61
|
"packageManager": {
|
61
62
|
"description": "The package manager used to install dependencies.",
|
62
|
-
"type": "string"
|
63
|
+
"type": "string",
|
64
|
+
"enum": ["npm", "yarn", "pnpm", "bun"]
|
63
65
|
},
|
64
66
|
"framework": {
|
65
67
|
"description": "The framework which the application is using",
|
66
|
-
"type": "string"
|
68
|
+
"type": "string",
|
69
|
+
"enum": ["express", "koa", "fastify", "nest", "none"]
|
67
70
|
},
|
68
71
|
"nextAppDir": {
|
69
72
|
"description": "Enable the App Router for this project.",
|
@@ -77,11 +80,13 @@
|
|
77
80
|
},
|
78
81
|
"unitTestRunner": {
|
79
82
|
"description": "The tool to use for running unit tests.",
|
80
|
-
"type": "string"
|
83
|
+
"type": "string",
|
84
|
+
"enum": ["jest", "vitest", "none"]
|
81
85
|
},
|
82
86
|
"e2eTestRunner": {
|
83
87
|
"description": "The tool to use for running e2e tests.",
|
84
|
-
"type": "string"
|
88
|
+
"type": "string",
|
89
|
+
"enum": ["playwright", "cypress", "jest", "detox", "none"]
|
85
90
|
},
|
86
91
|
"ssr": {
|
87
92
|
"description": "Enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) for the Angular application.",
|
@@ -95,6 +100,7 @@
|
|
95
100
|
"formatter": {
|
96
101
|
"description": "The tool to use for code formatting.",
|
97
102
|
"type": "string",
|
103
|
+
"enum": ["none", "prettier"],
|
98
104
|
"default": "none"
|
99
105
|
},
|
100
106
|
"workspaces": {
|
@@ -6,20 +6,20 @@ export interface Schema {
|
|
6
6
|
preset: Preset;
|
7
7
|
style?: string;
|
8
8
|
linter?: string;
|
9
|
-
formatter?:
|
9
|
+
formatter?: 'none' | 'prettier';
|
10
10
|
workspaces?: boolean;
|
11
11
|
standaloneConfig?: boolean;
|
12
12
|
framework?: string;
|
13
|
-
packageManager?:
|
14
|
-
bundler?:
|
13
|
+
packageManager?: PackageManager;
|
14
|
+
bundler?: 'vite' | 'rsbuild' | 'webpack' | 'rspack' | 'esbuild';
|
15
15
|
docker?: boolean;
|
16
16
|
nextAppDir?: boolean;
|
17
17
|
nextSrcDir?: boolean;
|
18
18
|
routing?: boolean;
|
19
19
|
useReactRouter?: boolean;
|
20
20
|
standaloneApi?: boolean;
|
21
|
-
unitTestRunner?:
|
22
|
-
e2eTestRunner?:
|
21
|
+
unitTestRunner?: 'jest' | 'vitest' | 'none';
|
22
|
+
e2eTestRunner?: 'cypress' | 'playwright' | 'jest' | 'detox' | 'none';
|
23
23
|
js?: boolean;
|
24
24
|
ssr?: boolean;
|
25
25
|
serverRouting?: boolean;
|
@@ -17,6 +17,7 @@
|
|
17
17
|
"linter": {
|
18
18
|
"description": "The tool to use for running lint checks.",
|
19
19
|
"type": "string",
|
20
|
+
"enum": ["eslint", "none"],
|
20
21
|
"default": "eslint"
|
21
22
|
},
|
22
23
|
"routing": {
|
@@ -65,15 +66,18 @@
|
|
65
66
|
},
|
66
67
|
"packageManager": {
|
67
68
|
"description": "The package manager used to install dependencies.",
|
68
|
-
"type": "string"
|
69
|
+
"type": "string",
|
70
|
+
"enum": ["npm", "yarn", "pnpm", "bun"]
|
69
71
|
},
|
70
72
|
"framework": {
|
71
73
|
"description": "The framework which the application is using",
|
72
|
-
"type": "string"
|
74
|
+
"type": "string",
|
75
|
+
"enum": ["express", "koa", "fastify", "nest", "none"]
|
73
76
|
},
|
74
77
|
"bundler": {
|
75
78
|
"description": "The bundler to use for building the application.",
|
76
79
|
"type": "string",
|
80
|
+
"enum": ["vite", "rspack", "rsbuild", "esbuild", "webpack"],
|
77
81
|
"default": "vite"
|
78
82
|
},
|
79
83
|
"docker": {
|
@@ -93,11 +97,13 @@
|
|
93
97
|
},
|
94
98
|
"unitTestRunner": {
|
95
99
|
"description": "The tool to use for running unit tests.",
|
96
|
-
"type": "string"
|
100
|
+
"type": "string",
|
101
|
+
"enum": ["jest", "vitest", "none"]
|
97
102
|
},
|
98
103
|
"e2eTestRunner": {
|
99
104
|
"description": "The tool to use for running e2e tests.",
|
100
|
-
"type": "string"
|
105
|
+
"type": "string",
|
106
|
+
"enum": ["playwright", "cypress", "jest", "detox", "none"]
|
101
107
|
},
|
102
108
|
"ssr": {
|
103
109
|
"description": "Enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) for the Angular application.",
|
@@ -111,6 +117,7 @@
|
|
111
117
|
"formatter": {
|
112
118
|
"description": "The tool to use for code formatting.",
|
113
119
|
"type": "string",
|
120
|
+
"enum": ["none", "prettier"],
|
114
121
|
"default": "none"
|
115
122
|
},
|
116
123
|
"workspaces": {
|