-
Notifications
You must be signed in to change notification settings - Fork 21
/
nx.json
48 lines (48 loc) · 1.64 KB
/
nx.json
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
{
"$schema": "https://raw.githubusercontent.com/nrwl/nx/master/packages/nx/schemas/nx-schema.json",
"extends": "nx/presets/npm.json",
"namedInputs": {
"default": ["{projectRoot}/**/*", "{workspaceRoot}/package-lock.json", { "runtime": "node -v" }],
"production": ["!{projectRoot}/test/**/*", "!{projectRoot}/.eslintrc", "!{projectRoot}/stryker.conf.js"]
},
"targetDefaults": {
"build:tsc": {
"inputs": ["default", "{projectRoot}/**/*.ts", "{workspaceRoot}/**/*.ts"],
"dependsOn": ["report-schema:generate"],
"outputs": ["{projectRoot}/packages/*/dist", "{projectRoot}/packages/*/dist-tsc"],
"cache": true
},
"build": {
"inputs": ["production", "^production"],
"dependsOn": ["^build", "root:build:tsc"],
"outputs": ["{projectRoot}/dist", "{projectRoot}/target"],
"cache": true
},
"generate": {
"inputs": ["{projectRoot}/src/*.json", "{workspaceRoot}/tasks/schema2ts.mjs", { "externalDependencies": ["json-schema-to-typescript"] }],
"outputs": ["{projectRoot}/src-generated"],
"cache": true
},
"test": {
"inputs": ["default", "^production"],
"dependsOn": ["root:build:tsc"],
"cache": true
},
"stryker": {
"inputs": ["default", "^production", { "env": "GITHUB_REF" }],
"dependsOn": ["generate", "root:build:tsc", "^build"],
"outputs": ["{projectRoot}/reports", "{projectRoot}/target/stryker4s-report-*/"],
"cache": true
},
"lint": {
"dependsOn": ["root:build:tsc"],
"cache": true
},
"lint:prettier": {
"cache": true
},
"start": {
"dependsOn": ["root:build:tsc"]
}
}
}