forked from zwave-js/node-zwave-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathturbo.json
130 lines (123 loc) · 3.04 KB
/
turbo.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"$schema": "https://turborepo.org/schema.json",
"pipeline": {
"clean": {
"cache": false
},
"prebuild": {
// Prebuild tasks run before everything else
"dependsOn": ["^prebuild"]
},
"@zwave-js/maintenance#prebuild": {
// ... but the maintenance prebuild task has dependencies
"dependsOn": ["^build"]
},
"codegen": {
// Code generation for packages requires the packages' dependencies to be built
// and runs after the own prebuild
"dependsOn": ["^build", "prebuild"]
},
"@zwave-js/cc#codegen": {
"dependsOn": ["^build", "prebuild"],
"outputs": [
"src/cc/index.ts",
"src/lib/API.ts",
"src/lib/Values.ts"
]
},
"@zwave-js/config#codegen": {
"dependsOn": ["^build", "prebuild"],
"outputs": ["src/LogicParser.ts"]
},
"build": {
"dependsOn": ["^build", "prebuild", "codegen"],
// TODO: Figure out how to exclude test files from inputs
// :!:**/*.test.ts doesn't work
"inputs": [":!:**/*.test.ts", "src/**"],
"outputs": ["build/**", "*.tsbuildinfo"]
},
"lint": {
"dependsOn": [],
"inputs": [
// https://github.com/vercel/turborepo/issues/1407
":!:build/",
"**/*.{ts,json}",
// The style based linting tasks depend on the corresponding configuration in the repo root
"../../.eslintrc.js",
"../../.eslintignore",
"../../.prettierrc.js",
"../../.prettierignore",
"../../tsconfig.eslint.json"
],
"outputs": []
},
// Specific linting tasks: ESLint
"lint:ts": {
"dependsOn": [],
"inputs": [
// https://github.com/vercel/turborepo/issues/1407
":!:build/",
"**/*.{ts,json}",
// The style based linting tasks depend on the corresponding configuration in the repo root
"../../.eslintrc.js",
"../../.eslintignore",
"../../.prettierrc.js",
"../../.prettierignore",
"../../tsconfig.eslint.json"
],
"outputs": []
},
"lint:ts:fix": {
"dependsOn": []
},
// Specific linting tasks: Prettier
"lint:prettier": {
"dependsOn": [],
"inputs": [
// https://github.com/vercel/turborepo/issues/1407
":!:build/",
"**/*.{ts,json}",
// The style based linting tasks depend on the corresponding configuration in the repo root
"../../.eslintrc.js",
"../../.eslintignore",
"../../.prettierrc.js",
"../../.prettierignore",
"../../tsconfig.eslint.json"
],
"outputs": []
},
"lint:prettier:fix": {
"dependsOn": []
},
"lint:zwave": {
"dependsOn": ["build"],
"outputs": []
},
"extract-api": {
"dependsOn": ["build"],
"outputs": ["api.md"]
},
"test:ts": {
"dependsOn": ["^build"],
"inputs": ["src/**/*.ts"],
"outputs": [] // TODO: consider snapshot files
},
// For now, run tests in the root:
"//#test:ts": {
"dependsOn": ["zwave-js#build"],
"inputs": [
"jest.config.js",
"test/jest.*.{js,ts}",
"packages/*/src/**/*.ts"
],
"outputs": []
}
},
"globalDependencies": [
// Build fresh when dependencies change
"yarn.lock",
// Build fresh when TS related stuff changes
"tsconfig.json",
"tsconfig.build.json"
]
}