-
-
Notifications
You must be signed in to change notification settings - Fork 10k
Expand file tree
/
Copy pathnx.json
More file actions
209 lines (208 loc) · 7.89 KB
/
nx.json
File metadata and controls
209 lines (208 loc) · 7.89 KB
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
{
"$schema": "./node_modules/nx/schemas/workspace-schema.json",
"nxCloudId": "6929fbef73e98d8094d2a343",
"defaultBase": "next",
"parallel": 8,
"pluginsConfig": {
"@nx/js": {
"analyzeSourceFiles": false
}
},
"defaultProject": "react-vite/default-ts",
"useInferencePlugins": false,
"tasksRunnerOptions": {
"default": {
"options": {
"canTrackAnalytics": false,
"showUsageWarnings": true
}
}
},
"tui": {
"autoExit": true
},
"targetDefaults": {
"compile": {
"dependsOn": ["^compile"],
"command": "yarn exec jiti ./scripts/build/build-package.ts --cwd {projectRoot}",
"configurations": { "production": { "args": "--prod" } },
"cache": true,
"inputs": ["production", "^production"],
"outputs": [
"{projectRoot}/dist",
"{workspaceRoot}/code/bench/esbuild-metafiles/{projectName}"
]
},
"check": {
"dependsOn": [{ "projects": ["*"], "target": "compile" }],
"command": "yarn exec jiti ./scripts/check/check-package.ts --cwd {projectRoot}",
"cache": true,
"inputs": ["default", "^production"],
"configurations": { "production": {} }
},
"publish": {
"dependsOn": [{ "projects": ["*"], "target": "compile" }],
"command": "yarn workspace @storybook/scripts local-registry --publish",
"cache": true,
"inputs": ["all-production"],
"outputs": ["{workspaceRoot}/.verdaccio-cache"],
"configurations": { "production": {} }
},
"run-registry": {
"dependsOn": [{ "projects": ["scripts"], "target": "publish" }],
"command": "yarn workspace @storybook/scripts local-registry --open",
"continuous": true,
"configurations": { "production": {} }
},
"sandbox": {
"dependsOn": [{ "projects": ["scripts"], "target": "run-registry" }],
"command": "yarn task sandbox -s task --debug --no-link --template={projectName}",
"cache": true,
"inputs": ["^production"],
"outputs": ["{workspaceRoot}/sandbox/{options.dir}"],
"configurations": { "production": {} }
},
"check-sandbox": {
"dependsOn": ["sandbox", { "projects": ["scripts"], "target": "run-registry" }],
"command": "yarn task check-sandbox -s task --debug --no-link --template={projectName}",
"cache": true,
"inputs": ["^production"],
"configurations": { "production": {} }
},
"build": {
"dependsOn": ["sandbox", { "projects": ["scripts"], "target": "run-registry" }],
"command": "yarn task build -s task --debug --no-link --template={projectName}",
"cache": true,
"inputs": ["^production"],
"outputs": ["{workspaceRoot}/sandbox/{options.dir}/storybook-static"],
"configurations": { "production": {} }
},
"dev": {
"dependsOn": ["sandbox", { "projects": ["scripts"], "target": "run-registry" }],
"command": "yarn task dev -s task --debug --no-link --template={projectName}",
"continuous": true,
"configurations": { "production": {} }
},
"vitest-integration": {
"dependsOn": ["sandbox", { "projects": ["scripts"], "target": "run-registry" }],
"command": "yarn task vitest-integration -s task --debug --no-link --template={projectName}",
"cache": true,
"inputs": ["^production"],
"configurations": { "production": {} }
},
"chromatic": {
"dependsOn": ["build", { "projects": ["scripts"], "target": "run-registry" }],
"command": "yarn task chromatic -s task --debug --no-link --template={projectName}",
"cache": true,
"inputs": ["^production"],
"configurations": { "production": {} }
},
"serve": {
"dependsOn": ["build", { "projects": ["scripts"], "target": "run-registry" }],
"command": "yarn task serve -s task --debug --no-link --template={projectName}",
"continuous": true,
"configurations": { "production": {} }
},
"e2e-tests": {
"dependsOn": ["serve"],
"command": "yarn task e2e-tests --junit -s task --debug --no-link --template={projectName}",
"cache": true,
"inputs": ["^production"],
"outputs": ["{workspaceRoot}/test-results", "{workspaceRoot}/code/playwright-results"],
"configurations": { "production": {} }
},
"test-runner": {
"dependsOn": ["serve"],
"command": "yarn task test-runner --junit -s task --debug --no-link --template={projectName}",
"cache": true,
"inputs": ["^production"],
"outputs": ["{workspaceRoot}/test-results", "{workspaceRoot}/code/playwright-results"],
"configurations": { "production": {} }
},
"e2e-tests-dev": {
"dependsOn": ["dev"],
"command": "yarn task e2e-tests-dev --junit -s task --debug --no-link --template={projectName}",
"cache": true,
"inputs": ["^production"],
"outputs": ["{workspaceRoot}/test-results", "{workspaceRoot}/code/playwright-results"],
"configurations": { "production": {} }
},
"test-runner-dev": {
"dependsOn": ["dev"],
"command": "yarn task test-runner-dev --junit -s task --debug --no-link --template={projectName}",
"cache": true,
"inputs": ["^production"],
"outputs": ["{workspaceRoot}/test-results", "{workspaceRoot}/code/playwright-results"],
"configurations": { "production": {} }
},
"e2e-ui": {
"dependsOn": [{ "projects": ["*"], "target": "compile" }],
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "yarn --no-immutable && yarn playwright-e2e"
},
"cache": true,
"inputs": ["default", "^production"],
"outputs": ["{workspaceRoot}/test-results", "{workspaceRoot}/code/playwright-results"],
"configurations": { "production": {} }
},
"jest": {
"dependsOn": [{ "projects": ["*"], "target": "compile" }],
"executor": "nx:run-commands",
"options": { "cwd": "{projectRoot}", "command": "yarn --no-immutable && yarn jest" },
"cache": true,
"inputs": ["default", "^production"],
"outputs": ["{workspaceRoot}/test-results"],
"configurations": { "production": {} }
},
"vitest": {
"dependsOn": [{ "projects": ["*"], "target": "compile" }],
"executor": "nx:run-commands",
"options": { "cwd": "{projectRoot}", "command": "yarn --no-immutable && yarn vitest" },
"cache": true,
"inputs": ["default", "^production"],
"outputs": ["{workspaceRoot}/test-results"],
"configurations": { "production": {} }
},
"playwright-ct": {
"dependsOn": [{ "projects": ["*"], "target": "compile" }],
"executor": "nx:run-commands",
"options": { "cwd": "{projectRoot}", "command": "yarn --no-immutable && yarn playwright-ct" },
"cache": true,
"inputs": ["default", "^production"],
"outputs": ["{workspaceRoot}/test-results", "{workspaceRoot}/code/playwright-results"],
"configurations": { "production": {} }
},
"cypress": {
"dependsOn": [{ "projects": ["*"], "target": "compile" }],
"executor": "nx:run-commands",
"options": { "cwd": "{projectRoot}", "command": "yarn --no-immutable && yarn cypress" },
"cache": true,
"inputs": ["default", "^production"],
"outputs": ["{workspaceRoot}/test-results"],
"configurations": { "production": {} }
}
},
"namedInputs": {
"sharedGlobals": [
"{workspaceRoot}/code/tsconfig.json",
"{workspaceRoot}/scripts/**/*",
"{workspaceRoot}/.github/workflows/nx.yml",
"{workspaceRoot}/.nx/workflows/*"
],
"default": ["sharedGlobals", "{projectRoot}/**/*"],
"production": [
"sharedGlobals",
"{projectRoot}/**/*",
"!{projectRoot}/src/**/*.{test,spec,stories}.?(c|m)[jt]s?(x)?(.snap)"
],
"all-production": [
"sharedGlobals",
"{workspaceRoot}/code/**/*",
"!{workspaceRoot}/code/**/*.{test,spec,stories}.?(c|m)[jt]s?(x)?(.snap)"
]
},
"analytics": false,
"codexCacheBust": "2026-03-23T12:57:22Z"
}