-
Notifications
You must be signed in to change notification settings - Fork 305
Expand file tree
/
Copy pathnx.json
More file actions
55 lines (55 loc) · 1.78 KB
/
nx.json
File metadata and controls
55 lines (55 loc) · 1.78 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
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"defaultBase": "dev",
"targetDefaults": {
"build": {
"dependsOn": ["^build"], // build all upstream dependencies first
"cache": true,
"inputs": ["production"], // skip test-only files when hashing builds
"outputs": ["{projectRoot}/dist"]
},
"test": {
"dependsOn": ["^build"], // build all upstream dependencies first
"cache": true,
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"] // include shared preset in cache key
},
"lint": {
"dependsOn": ["^build"], // build all upstream dependencies first
"cache": true,
"inputs": ["default", "{workspaceRoot}/eslint.config.ts"] // workspace lint config in hash
}
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"], // everything under the project by default
"production": [
"default",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
"!{projectRoot}/tsconfig.spec.json",
"!{projectRoot}/jest.config.[jt]s",
"!{projectRoot}/.eslintrc.json",
"!{projectRoot}/src/test-setup.[jt]s",
"!{projectRoot}/test-setup.[jt]s"
],
"sharedGlobals": [] // hook for root-level shared files if needed
},
"defaultProject": "webapp",
"release": {
"projects": ["tag:npm:public"],
"projectsRelationship": "independent",
"version": {
"conventionalCommits": true,
"fallbackCurrentVersionResolver": "disk",
"preserveLocalDependencyProtocols": false,
"git": {
"commit": true,
"tag": true,
"commitMessage": "chore(release): publish {projectName} {version} [WPB-22420]"
}
},
"changelog": {
"projectChangelogs": {
"createRelease": "github"
}
}
}
}