-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnx.json
More file actions
123 lines (123 loc) · 3.67 KB
/
nx.json
File metadata and controls
123 lines (123 loc) · 3.67 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
115
116
117
118
119
120
121
122
123
{
"pluginsConfig": {},
"extends": "nx/presets/npm.json",
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"workspaceLayout": {
"appsDir": "packages",
"libsDir": "packages"
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"os": [{ "runtime": "node -e \"console.log(require('os').platform())\"" }],
"production": [
"default",
"!{projectRoot}/README.md",
"!{projectRoot}/CHANGELOG.md",
"!{projectRoot}/perf/**/*",
"!{projectRoot}/tools/**/*",
"!{projectRoot}/zod2md.config.ts",
"!{projectRoot}/eslint.config.?(c)js",
"!{workspaceRoot}/**/.code-pushup/**/*",
"!{projectRoot}/code-pushup.config.?(m)[jt]s",
"!{projectRoot}/code-pushup.config.bundled_*.mjs",
"!{projectRoot}/@(test|mocks|mock)/**/*",
"!{projectRoot}/**/?(*.)test.[jt]s?(x)?(.snap)",
"!{projectRoot}/**/?(*.)mocks.[jt]s?(x)",
"!{projectRoot}/**/?(*.)mock.[jt]s?(x)",
"!{projectRoot}/vitest.@(unit|int|e2e).config.[jt]s",
"!{projectRoot}/dist/**/*",
"!{projectRoot}/tsconfig.@(test|tools).json",
"!{workspaceRoot}/**/(*.)coverage/**/*"
],
"test-vitest-inputs": [
"os",
{ "env": "NX_VERBOSE_LOGGING" },
{ "externalDependencies": ["vitest"] }
],
"lint-eslint-inputs": [{ "externalDependencies": ["eslint"] }],
"typecheck-typescript-inputs": [{ "externalDependencies": ["typescript"] }],
"code-pushup-inputs": [
{ "env": "NODE_OPTIONS" },
{ "env": "TSX_TSCONFIG_PATH" }
],
"sharedGlobals": [{ "runtime": "node -v" }, { "runtime": "npm -v" }]
},
"targetDefaults": {
"lint": {
"inputs": ["default", "lint-eslint-inputs"],
"outputs": ["{projectRoot}/.eslint/**/*"],
"cache": true,
"executor": "nx:run-commands",
"options": {
"command": "eslint",
"args": [
"'{projectRoot}/**/*.ts'",
"{projectRoot}/package.json",
"--config={projectRoot}/eslint.config.js",
"--max-warnings=0",
"--error-on-unmatched-pattern=false"
]
}
},
"build": {
"dependsOn": ["^build"],
"inputs": ["production", "^production"],
"cache": true,
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "{projectRoot}/dist",
"main": "{projectRoot}/src/index.ts",
"tsConfig": "{projectRoot}/tsconfig.lib.json",
"assets": ["{projectRoot}/*.md"]
}
},
"unit-test": {
"cache": true,
"inputs": ["default", "^production", "test-vitest-inputs"],
"outputs": [
"{workspaceRoot}/coverage/{projectName}/unit-tests/lcov.info"
],
"executor": "@nx/vitest:test",
"options": {
"configFile": "{projectRoot}/vitest.unit.config.ts",
"coverage": {
"enabled": true
}
}
},
"int-test": {
"cache": true,
"inputs": ["default", "^production", "test-vitest-inputs"],
"outputs": ["{workspaceRoot}/coverage/{projectName}/int-tests/lcov.info"],
"executor": "@nx/vitest:test",
"options": {
"configFile": "{projectRoot}/vitest.int.config.ts",
"coverage": {
"enabled": true
}
}
},
"e2e": {
"cache": true,
"inputs": ["default", "test-vitest-inputs"]
}
},
"plugins": [
{
"plugin": "@push-based/nx-verdaccio",
"options": {
"environments": {
"environmentsDir": "tmp/e2e",
"targetNames": ["e2e"],
"inferredTargets": {
"e2e": "e2e-test"
}
},
"packages": {
"filterByTags": ["publishable"]
}
}
}
]
}