forked from Telefonica/confluence-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnx.json
More file actions
128 lines (127 loc) · 3.21 KB
/
nx.json
File metadata and controls
128 lines (127 loc) · 3.21 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
124
125
126
127
128
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: MIT
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"npmScope": "@telefonica",
"defaultBase": "origin/main",
"parallel": 2,
"namedInputs": {
// Root workspace configuration is an input for all targets in all projects
"sharedGlobals": [
"{workspaceRoot}/package.json",
"{workspaceRoot}/pnpm-lock.yaml",
"{workspaceRoot}/nx.json",
"{workspaceRoot}/pnpm-workspace.yaml",
{ "runtime": "node --version" }
],
// By default, all projects depend on the whole workspace configuration and their own source code
"default": [
"{projectRoot}/**/*",
"sharedGlobals"
],
// Usual input for the build targets. It excludes test files, mocks, and other non-production files. This should be overridden in projects that have different test files
"production": [
"!{projectRoot}/**/*.spec.*",
"!{projectRoot}/**/*.test.*",
"!{projectRoot}/test/**/*",
"!{projectRoot}/mocks/**/*",
"!{projectRoot}/*",
"{projectRoot}/package.json",
"{projectRoot}/README.md",
"{projectRoot}/CHANGELOG.md",
"!{workspaceRoot}/components/cspell-config/**/*",
"!{workspaceRoot}/components/eslint-config/**/*"
]
},
"targetDefaults": {
"lint": {
"cache": true,
"inputs": [
{ "dependentTasksOutputFiles": "**/*", "transitive": true },
"default"
],
"dependsOn": [
{
"target": "eslint:config",
"projects": ["eslint-config"]
}
]
},
"check:spell": {
"cache": true,
"inputs": [
{ "dependentTasksOutputFiles": "**/*", "transitive": true },
"default"
],
"dependsOn": [
{
"target": "cspell:config",
"projects": ["cspell-config"]
}
]
},
"check:types": {
"cache": true,
"inputs": [
{ "dependentTasksOutputFiles": "**/*", "transitive": true },
"default"
],
"dependsOn": [
"^build"
]
},
"test:unit": {
"cache": true,
"inputs": [
{ "dependentTasksOutputFiles": "**/*", "transitive": true },
"default"
],
"outputs": ["{projectRoot}/coverage"],
"dependsOn": [
"^build"
]
},
"build": {
"cache": true,
"inputs": [
{ "dependentTasksOutputFiles": "**/*", "transitive": true },
"default",
"production"
],
"dependsOn": [
"^build"
],
"outputs": [
"{projectRoot}/dist",
"{projectRoot}/package.json",
"{projectRoot}/README.md",
"{projectRoot}/CHANGELOG.md",
"{projectRoot}/bin"
]
},
"test:component": {
"cache": true,
"parallelism": false,
"inputs": [
{ "dependentTasksOutputFiles": "**/*", "transitive": true },
"default"
],
"dependsOn": [
"build",
"^build"
]
},
"check:all": {
"dependsOn": [
"cspell:config",
"eslint:config",
"check:spell",
"lint",
"check:types",
"test:unit",
"build",
"test:component"
]
}
}
}