-
Notifications
You must be signed in to change notification settings - Fork 0
/
nx.json
107 lines (107 loc) · 3.13 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
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
{
"extends": "nx/presets/npm.json",
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"workspaceLayout": {
"appsDir": "apps",
"libsDir": "libs"
},
"targetDefaults": {
"build": {
"cache": true,
"executor": "@monodon/rust:build",
"outputs": ["{options.target-dir}"],
"options": {
"target-dir": "dist/libs/{projectName}"
},
"configurations": {
"production": {
"release": true
}
}
},
"test": {
"cache": true,
"executor": "nx:run-commands",
"options": {
"color": true,
"env": {
"CARGO_INCREMENTAL": "0",
"RUSTFLAGS": "-Cinstrument-coverage",
"LLVM_PROFILE_FILE": "../../coverage/libs/{projectName}/%p-%m.profraw"
},
"command": "cargo test -p {projectName} --lib --target-dir dist/libs/{projectName}"
}
},
"coverage": {
"cache": true,
"executor": "nx:run-commands",
"options": {
"command": "grcov . --binary-path ./dist/libs/{projectName}/debug/deps/ -s libs/{projectName} -t lcov --branch --ignore-not-existing --ignore '../*' --ignore '/*' -o coverage/libs/{projectName}/tests.lcov"
}
},
"lint": {
"cache": true,
"executor": "nx:run-commands",
"configurations": {
"ci": {
"command": "cargo clippy --no-deps -p {projectName} -- -D warnings"
}
},
"options": {
"command": "cargo clippy --no-deps -p {projectName}"
}
},
"start": {
"executor": "@monodon/rust:run",
"outputs": ["{options.target-dir}"],
"options": {
"target-dir": "dist/libs/{projectName}"
},
"configurations": {
"production": {
"release": true
}
}
},
"@nx/eslint:lint": {
"cache": true,
"inputs": [
"default",
"{workspaceRoot}/.eslintrc.json",
"{workspaceRoot}/.eslintignore",
"{workspaceRoot}/eslint.config.js"
]
}
},
"plugins": [
"@monodon/rust",
{
"plugin": "@nx/next/plugin",
"options": {
"buildTargetName": "build",
"devTargetName": "dev",
"startTargetName": "start"
}
},
{
"plugin": "@nx/jest/plugin",
"options": {
"targetName": "test"
}
},
{
"plugin": "@nx/eslint/plugin",
"options": {
"targetName": "lint"
}
}
],
"generators": {
"@nx/next": {
"application": {
"style": "none",
"linter": "eslint"
}
}
}
}