forked from zwave-js/node-zwave-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathturbo.json
143 lines (135 loc) · 3.68 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
},
"codegen": {
// Dummy task to enable running all codegen tasks
},
"@zwave-js/cc#codegen": {
"outputs": [
"src/cc/index.ts",
"src/lib/API.ts",
"src/lib/Values.ts"
]
},
"@zwave-js/config#codegen": {
"outputs": ["src/LogicParser.ts"]
},
// We just define a single build script, as it turns out that
// TypeScript is just better at caching TS builds than Turbo
"//#build:turbo": {
"inputs": [
// Pick up changes to the build script
"maintenance/build.ts",
// ...and configuration
"packages/*/package.json",
"packages/*/tsconfig.json",
"packages/*/tsconfig.build.json",
// All source files are input
"packages/*/src/**",
// TODO: Figure out how to exclude test files from inputs
// :!:**/*.test.ts doesn't work
":!:**/*.test.ts"
],
"outputs": ["packages/*/build/**", "packages/*/*.tsbuildinfo"]
},
// Specific linting tasks: ESLint
"lint:ts": {
"dependsOn": ["//#build:turbo"],
"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:turbo"],
"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
"dependsOn": ["//#build:turbo"]
},
"@zwave-js/cc#lint:zwave": {
"inputs": ["**/*.ts"]
},
"@zwave-js/config#lint:zwave": {
"inputs": ["**/*.ts", "config/**/*.json"]
},
"extract-api": {
"dependsOn": ["//#build:turbo"],
"inputs": ["src/**/*.ts", "build/**"],
"cache": false
// "outputs": [".tmp/api.md", "api.md"]
},
"test:ts": {
"dependsOn": ["//#build:turbo"],
"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"
]
}