-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Expand file tree
/
Copy pathturbo.json
More file actions
186 lines (185 loc) · 5.13 KB
/
Copy pathturbo.json
File metadata and controls
186 lines (185 loc) · 5.13 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
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
{
"$schema": "https://turborepo.dev/schema.json",
"ui": "tui",
"noUpdateNotifier": true,
"futureFlags": {
"experimentalCargoWorkspaces": true,
"experimentalTaskCommand": true
},
// The following are used by tools such as pnpm, gh actions to setup pnpm, etc.
"globalPassThroughEnv": [
"Path",
"APPDATA",
"LOCALAPPDATA",
"TMPDIR",
"HOME",
"TMP",
"USERPROFILE",
"SCCACHE_GHA_ENABLED",
"SCCACHE_BUCKET",
"SCCACHE_REGION",
"AWS_ACCESS_KEY_ID",
"AWS_SECRET_ACCESS_KEY",
"RUSTC_WRAPPER",
"CARGO_INCREMENTAL",
"CARGO_BUILD_JOBS",
"RUSTFLAGS",
"ACTIONS_CACHE_URL",
"ACTIONS_RUNTIME_TOKEN"
],
// 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"],
"tasks": {
"test": {
"outputs": ["coverage/**/*"],
"env": ["NODE_VERSION"],
// ^build is generically set here, we haven't fully enumerated which workspaces
// actually need to build before running tests.
"dependsOn": ["^build"]
},
// The Rust workspace tests run through nextest with per-test process
// isolation. Some tests read root-level config and integration fixtures
// outside the Cargo workspace, so declare them explicitly.
// Excludes mirror the CI invocations: turborepo-lsp, schema-gen, and
// napi need extra build environments.
"turborepo-crates#test": {
"dependsOn": [],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/version.txt",
"$TURBO_ROOT$/.config/nextest.toml",
"$TURBO_ROOT$/.config/insta.yaml",
"$TURBO_ROOT$/turborepo-tests/integration/**"
],
"command": [
"cargo",
"nextest",
"run",
"--workspace",
"--exclude",
"turborepo-lsp",
"--exclude",
"turborepo-schema-gen",
"--exclude",
"turborepo-napi",
"--no-fail-fast"
]
},
"turborepo-crates#format": {
"command": ["cargo", "fmt", "--check"]
},
// Match the stricter cargo alias used by the Rust lint CI job.
"turborepo-crates#lint": {
"cache": false,
"command": ["cargo", "lint"]
},
// docs lint task runs fumadocs-mdx
"docs#lint": {},
"//#quality": {
"dependsOn": [
"//#lint",
"//#format",
"//#check:toml",
"docs#lint",
"docs#check-types",
"docs#check-links",
"docs#check-openapi"
]
},
"//#lint": {
"inputs": ["!pnpm-lock.yaml"],
"command": ["pnpm", "exec", "oxlint", "--deny-warnings", "."]
},
"//#lint:fix": {
"command": ["pnpm", "exec", "oxlint", "--fix", "."]
},
"//#format": {
"command": ["pnpm", "exec", "oxfmt", "--check"]
},
"//#format:fix": {
"command": ["pnpm", "exec", "oxfmt", "."]
},
"//#check:toml": {
"command": ["pnpm", "exec", "taplo", "format", "--check"]
},
"//#fix:toml": {
"command": ["pnpm", "exec", "taplo", "format"]
},
"//#quality:fix": {
"dependsOn": ["//#lint:fix", "//#format:fix", "//#fix:toml"]
},
"check-types": {
"dependsOn": ["^build"],
"command": {
"javascript": ["pnpm", "exec", "tsc", "--noEmit"]
}
},
"@turbo/tsconfig#check-types": {
"command": null
},
"@repo/docs-link-checker#check-types": {
"command": null
},
"eslint-config-turbo#check-types": {
"command": null
},
"check-openapi": {},
"//#build:ts": {
"outputs": ["packages/**/dist"],
"command": ["pnpm", "exec", "tsc", "-b", "tsconfig.project.json"]
},
"//#check": {
"command": ["pnpm", "exec", "ultracite", "check"]
},
"//#fix": {
"cache": false,
"command": ["pnpm", "exec", "ultracite", "fix"]
},
"build:ts": {
"outputs": ["dist/**/*"]
},
"build": {
"outputs": [
"dist/**/*",
".next/**/*",
"!.next/cache/**/*",
"!.next/dev/**/*",
"!README.md"
],
"dependsOn": ["^build"]
},
"dev": {
"cache": false,
"persistent": true,
"env": ["AI_GATEWAY_API_KEY"]
},
// These entrypoints embed files outside every crate directory, so the
// automatic crate-closure hashing cannot see them. $TURBO_DEFAULT$ keeps
// the automatic inputs and appends the external files.
"turbo#build": {
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/version.txt",
"$TURBO_ROOT$/packages/turbo-types/src/json/frameworks.json"
]
},
"turborepo-lsp#build": {
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/packages/turbo-types/src/json/frameworks.json"
]
},
"package-checks": {
"dependsOn": ["package:types"]
},
"package:types": {},
// 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"]
},
"check-examples": {},
"check-lockfiles": {}
}
}