-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
Expand file tree
/
Copy pathnx.json
More file actions
125 lines (125 loc) · 3.32 KB
/
nx.json
File metadata and controls
125 lines (125 loc) · 3.32 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
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"extends": "nx/presets/npm.json",
"nxCloudAccessToken": "NGVmYTkxMmItYzY3OS00MjkxLTk1ZDktZDFmYTFmNmVlNGY4fHJlYWQ=",
"defaultBase": "next",
"useLegacyCache": true,
"parallel": 8,
"plugins": [
{
"plugin": "@nx/vite/plugin",
"options": {
"testTargetName": "test"
}
}
],
"tasksRunnerOptions": {
"default": {
"options": {
"canTrackAnalytics": false,
"showUsageWarnings": true
}
}
},
"targetDefaults": {
"build": {
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "yarn prep",
"args": "--reset"
},
"configurations": {
"production": {
"args": "--reset --optimized"
}
},
"inputs": [
"production",
"^production",
"{workspaceRoot}/../scripts/prepare/{bundle,addon-bundle,esm-bundle}.ts"
],
"dependsOn": ["^build"],
"outputs": ["{projectRoot}/dist", "{workspaceRoot}/bench/esbuild-metafiles/{projectName}"],
"cache": true
},
"test": {
"executor": "nx:run-commands",
"options": {
"cwd": "{workspaceRoot}",
"command": "yarn vitest watch --project={projectName}"
},
"dependsOn": ["build"],
"inputs": [
"default",
"^production",
"{workspaceRoot}/{vitest.workspace.ts,vitest.helpers.ts,vitest-setup.ts}"
],
"cache": true
},
"check": {
"configurations": {
"production": {}
},
"inputs": ["default", "^production", "{workspaceRoot}/../scripts/prepare/check.ts"],
"dependsOn": ["build"],
"cache": true
},
"sandbox": {
"executor": "nx:run-commands",
"inputs": [
{
"runtime": "storybook --version"
}
],
"outputs": ["{workspaceRoot}/../{projectRoot}"],
"options": {
"cwd": "{workspaceRoot}",
"command": "yarn task sandbox -s sandbox --template={projectName}"
},
"dependsOn": ["^build"],
"cache": true
},
"sb:dev": {
"executor": "nx:run-commands",
"options": {
"cwd": "{workspaceRoot}/../{projectRoot}",
"command": "yarn storybook",
"args": "--ci"
},
"dependsOn": ["sandbox"]
},
"sb:build": {
"executor": "nx:run-commands",
"options": {
"cwd": "{workspaceRoot}/../{projectRoot}",
"command": "yarn build-storybook"
},
"inputs": ["^production"],
"outputs": ["{workspaceRoot}/../{projectRoot}/storybook-static"],
"cache": true,
"dependsOn": ["sandbox"]
},
"sb:serve": {
"executor": "nx:run-commands",
"options": {
"cwd": "{workspaceRoot}",
"command": "yarn http-server ../{projectRoot}/storybook-static",
"args": "--port 8001"
},
"dependsOn": ["sb:build"]
}
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": ["{workspaceRoot}/tsconfig.json"],
"production": [
"default",
"!{projectRoot}/src/**/**/*.{test,spec,stories}.?(c|m)[jt]s?(x)?(.snap)",
"!{projectRoot}/vitest.config.[jt]s",
"!{projectRoot}/README.md",
"!{projectRoot}/.eslintrc.{json,js}",
"!{projectRoot}/src/test-setup.[jt]s"
]
}
}