-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnx.json
More file actions
114 lines (114 loc) · 2.95 KB
/
nx.json
File metadata and controls
114 lines (114 loc) · 2.95 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
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"parallel": 3,
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": [
"{workspaceRoot}/tsconfig.base.json",
{ "runtime": "node -v" },
{ "runtime": "npm -v" }
],
"production": [
"default",
"!{projectRoot}/**/*.spec.[jt]s",
"!{projectRoot}/eslint.config.js",
"!{projectRoot}/vitest.config.[jt]s",
"!{projectRoot}/tsconfig.spec.json"
],
"lint-eslint-inputs": [{ "externalDependencies": ["eslint"] }],
"test-vitest-inputs": [
"{workspaceRoot}/vitest.config.ts",
{ "externalDependencies": ["vitest"] }
],
"typecheck-typescript-inputs": [
"{workspaceRoot}/tsconfig.base.json",
{ "externalDependencies": ["typescript"] }
]
},
"targetDefaults": {
"build": {
"executor": "@nx/js:tsc",
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
},
"test": {
"executor": "nx:run-commands",
"cache": true,
"inputs": ["default", "^default", "test-vitest-inputs"],
"options": {
"command": "vitest run",
"cwd": "{projectRoot}"
}
},
"test:watch": {
"executor": "nx:run-commands",
"options": {
"command": "vitest",
"cwd": "{projectRoot}"
}
},
"test:coverage": {
"executor": "nx:run-commands",
"cache": true,
"inputs": ["default", "^default", "test-vitest-inputs"],
"options": {
"command": "vitest run --coverage.enabled",
"cwd": "{projectRoot}"
},
"outputs": ["{projectRoot}/coverage"]
},
"lint": {
"executor": "nx:run-commands",
"cache": true,
"inputs": ["default", "^default", "lint-eslint-inputs"],
"options": {
"command": "eslint .",
"cwd": "{projectRoot}"
}
},
"typecheck": {
"executor": "nx:run-commands",
"cache": true,
"inputs": ["default", "^default", "typecheck-typescript-inputs"],
"options": {
"command": "tsc",
"cwd": "{projectRoot}"
}
},
"docs": {
"executor": "nx:run-commands",
"cache": true,
"inputs": ["production", "^production"],
"outputs": ["{projectRoot}/docs"]
},
"nx-release-publish": {
"dependsOn": ["build"],
"executor": "@nx/js:release-publish"
}
},
"analytics": false,
"release": {
"projects": ["packages/*"],
"projectsRelationship": "fixed",
"changelog": {
"automaticFromRef": true,
"projectChangelogs": false,
"workspaceChangelog": {
"createRelease": "github"
}
},
"git": {
"commit": true,
"push": true,
"pushRemote": "origin",
"tag": true,
"commitMessage": "release: {version}"
},
"version": {
"conventionalCommits": true,
"fallbackCurrentVersionResolver": "disk"
},
"releaseTagPattern": "v{version}"
}
}