-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnx.json
More file actions
60 lines (60 loc) · 1.19 KB
/
nx.json
File metadata and controls
60 lines (60 loc) · 1.19 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
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"defaultBase": "origin/main",
"namedInputs": {
"sharedGlobals": [
"{workspaceRoot}/nx.json",
"{workspaceRoot}/biome.json",
"{workspaceRoot}/package.json",
"{workspaceRoot}/pnpm-lock.yaml"
],
"default": ["{projectRoot}/**/*", "sharedGlobals"]
},
"targetDefaults": {
"serve": {
"dependsOn": ["^build"],
"inputs": ["default"],
"cache": true
},
"build": {
"dependsOn": ["^build", "typecheck"],
"inputs": ["default"],
"cache": true
},
"typecheck": {
"dependsOn": ["^build"],
"inputs": ["default"],
"cache": true,
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "tsc -b"
}
},
"lint": {
"dependsOn": ["^build"],
"inputs": ["default"],
"cache": true,
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "biome lint"
},
"configurations": {
"fix": {
"command": "biome lint --fix"
}
}
},
"test": {
"dependsOn": ["^build"],
"inputs": ["default"],
"cache": true,
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "vitest"
}
}
}
}