forked from vercel/turborepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
turbo.json
225 lines (219 loc) · 5.62 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
{
"$schema": "./docs/public/schema.json",
// The following are used by tools such as pnpm, gh actions to setup pnpm, and the Go toolchain
"globalPassThroughEnv": [
"Path",
"APPDATA",
"LOCALAPPDATA",
"TMPDIR",
"HOME",
"TMP",
"GOROOT",
"USERPROFILE"
],
// This is probably overkill, but we do things per-platform often enough that we should segment
// everything by OS and RUNNER_OS. This will segment between GH actions and everything else for now.
"globalEnv": ["OS", "RUNNER_OS"],
"pipeline": {
"test": {
"outputs": ["coverage/**/*"],
// ^build is generically set here, we haven't fully enumerated which workspaces
// actually need to build before running tests.
"dependsOn": ["^build"]
},
// run prettier check before eslint
"lint": {
"dependsOn": ["lint:prettier"]
},
// root lint task runs toml check
"//#lint": {
"dependsOn": ["//#check:toml"]
},
// run lint:prettier in all workspaces
"lint:prettier": {
"inputs": [
"**/*.4DForm",
"**/*.4DProject",
"**/*.JSON-tmLanguage",
"**/*._js",
"**/*.avsc",
"**/*.bones",
"**/*.cjs",
"**/*.code-snippets",
"**/*.component.html",
"**/*.css",
"**/*.cts",
"**/*.es",
"**/*.es6",
"**/*.frag",
"**/*.geojson",
"**/*.gltf",
"**/*.gql",
"**/*.graphql",
"**/*.graphqls",
"**/*.gs",
"**/*.handlebars",
"**/*.har",
"**/*.hbs",
"**/*.hta",
"**/*.htm",
"**/*.html",
"**/*.html.hl",
"**/*.ice",
"**/*.importmap",
"**/*.inc",
"**/*.jake",
"**/*.javascript",
"**/*.js",
"**/*.js.flow",
"**/*.jsb",
"**/*.jscad",
"**/*.jsfl",
"**/*.jslib",
"**/*.jsm",
"**/*.json",
"**/*.json5",
"**/*.jsonc",
"**/*.jspre",
"**/*.jss",
"**/*.jsx",
"**/*.less",
"**/*.livemd",
"**/*.markdown",
"**/*.mcmeta",
"**/*.md",
"**/*.mdown",
"**/*.mdwn",
"**/*.mdx",
"**/*.mir",
"**/*.mjml",
"**/*.mjs",
"**/*.mkd",
"**/*.mkdn",
"**/*.mkdown",
"**/*.mts",
"**/*.njs",
"**/*.pac",
"**/*.pcss",
"**/*.postcss",
"**/*.reek",
"**/*.ronn",
"**/*.rviz",
"**/*.scd",
"**/*.scss",
"**/*.sjs",
"**/*.ssjs",
"**/*.sublime-build",
"**/*.sublime-commands",
"**/*.sublime-completions",
"**/*.sublime-keymap",
"**/*.sublime-macro",
"**/*.sublime-menu",
"**/*.sublime-mousemap",
"**/*.sublime-project",
"**/*.sublime-settings",
"**/*.sublime-syntax",
"**/*.sublime-theme",
"**/*.sublime-workspace",
"**/*.sublime_metrics",
"**/*.sublime_session",
"**/*.syntax",
"**/*.tfstate",
"**/*.tfstate.backup",
"**/*.topojson",
"**/*.ts",
"**/*.tsx",
"**/*.vue",
"**/*.webapp",
"**/*.webmanifest",
"**/*.workbook",
"**/*.wxs",
"**/*.wxss",
"**/*.xht",
"**/*.xhtml",
"**/*.xsjs",
"**/*.xsjslib",
"**/*.yaml",
"**/*.yaml-tmlanguage",
"**/*.yaml.sed",
"**/*.yml",
"**/*.yml.mysql",
"**/*.yy",
"**/*.yyp",
"**/*.arcconfig",
"**/*.auto-changelog",
"**/*.babelrc",
"**/*.c8rc",
"**/*.clang-format",
"**/*.clang-tidy",
"**/*.devcontainer.json",
"**/*.eslintrc",
"**/*.eslintrc.json",
"**/*.gemrc",
"**/*.htmlhintrc",
"**/*.imgbotconfig",
"**/*.jscsrc",
"**/*.jshintrc",
"**/*.jslintrc",
"**/*.lintstagedrc",
"**/*.nycrc",
"**/*.prettierrc",
"**/*.stylelintrc",
"**/*.swcrc",
"**/*.tern-config",
"**/*.tern-project",
"**/*.watchmanconfig",
"**/*CITATION.cff",
"**/*Jakefile",
"**/*Pipfile.lock",
"**/*README",
"**/*api-extractor.json",
"**/*composer.json",
"**/*composer.lock",
"**/*contents.lr",
"**/*devcontainer.json",
"**/*glide.lock",
"**/*jsconfig.json",
"**/*language-configuration.json",
"**/*mcmod.info",
"**/*package-lock.json",
"**/*package.json",
"**/*tsconfig.json",
"**/*tslint.json"
]
},
"//#check:toml": {},
"check-types": {
"dependsOn": ["^build"]
},
"//#build:ts": {
"outputs": ["packages/**/dist"]
},
"build:ts": {
"outputs": ["dist/**/*"]
},
"build": {
"outputs": ["dist/**/*", ".next/**/*"],
"dependsOn": ["^build"]
},
// This is a synthetic tasks that lets us pull in other workspaces as dependencies
// So changes in internal workspaces that we depend on, will trigger this task.
"topo": {
"dependsOn": ["^topo"]
},
// example-tesst is in the root turbo.json so we don't have to redefine in each workspace
// Since they also has a unique set of dependencies, we don't model example tests with the
// test task, or we'd have to override the dependenies in each workspace.
"example-test": {
"dependsOn": [
"topo",
"@turborepo-examples-tests/helpers#setup",
"cli#build"
],
"inputs": ["*.t", "../setup.sh"]
}
},
"experimentalSpaces": {
"id": "space_WTrAuWxqVUapGgZDX7KiZV1v"
}
}