forked from zwave-js/node-zwave-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathturbo.json
143 lines (134 loc) · 3.61 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
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"$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": {
// Dummy task to enable running all codegen tasks
},
"@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"]
},
// Specific linting tasks: ESLint
"lint:ts": {
// "dependsOn": ["^build"],
"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"
]
},
"lint:ts:fix": {
"dependsOn": ["^build"],
"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": ["**/*.{ts,json}"]
},
// 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"
]
},
"lint:prettier:fix": {
"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": ["**/*.{ts,json}"]
},
"lint:zwave": {
// Dummy task to enable running all lint:zwave tasks
},
"@zwave-js/cc#lint:zwave": {
"dependsOn": ["^build"],
"inputs": ["**/*.ts"]
},
"@zwave-js/config#lint:zwave": {
"dependsOn": ["^build", "prebuild"],
"inputs": ["**/*.ts", "config/**/*.json"]
},
"extract-api": {
"dependsOn": ["build"],
"inputs": ["src/**/*.ts", "build/**"],
"outputs": [".tmp/api.md", "api.md"]
},
"test:ts": {
"dependsOn": ["^build"],
"inputs": ["src/**/*.ts", "ava.config.cjs", "../../ava.config.cjs"]
// TODO: consider snapshot files
},
"//#test:dirty:resolve": {
"inputs": ["**/*.ts", "package.json", "yarn.lock"],
"outputs": [".tmp/dirty-tests.json"]
},
"test:dirty": {
"dependsOn": ["//#test:dirty:resolve"],
"inputs": [".tmp/dirty-tests.json"]
}
},
"globalDependencies": [
// Build fresh when dependencies change
"yarn.lock",
// Build fresh when TS related stuff changes
"tsconfig.json",
"tsconfig.build.json"
]
}