Repository navigation
Expand file tree
/
Copy pathturbo.json
More file actions
78 lines (78 loc) · 2.95 KB
/
Copy pathturbo.json
File metadata and controls
78 lines (78 loc) · 2.95 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
{
"$schema": "https://turbo.build/schema.json",
"globalPassThroughEnv": [
"COREPACK_HOME"
],
"tasks": {
"build": {
"dependsOn": [
"^build"
],
"outputLogs": "new-only",
"outputs": [
"dist/**"
]
},
"@nuxt/devtools-assets#build": {
// Generates the client app that lives in `packages/devtools`
// (`client/**` dogfooding `src/module`) into this package's `dist/`.
// Those inputs are outside this package, so `$TURBO_DEFAULT$` alone
// can't hash them — list them explicitly via `$TURBO_ROOT$` so the
// task caches correctly instead of always rerunning. The explicit dep
// replaces `^build` (this package has no real workspace dependencies).
// The client app consumes `@nuxt/devtools` and `@nuxt/devtools-ui-kit`
// from source, but resolves `@nuxt/devtools/*` types through
// `packages/devtools/dist`, so the module must be built first. (It must
// not re-stub it either: a stub left in `dist` is what the ecosystem
// playgrounds would then pack.) Depending on `@nuxt/devtools#build`
// isn't a cycle: that task's own `dependsOn` below is pinned to just
// the kit, not `^build`, so it never depends back on this package.
"dependsOn": [
"@nuxt/devtools-kit#build",
"@nuxt/devtools#build"
],
"inputs": [
"$TURBO_DEFAULT$",
"$TURBO_ROOT$/packages/devtools/client/**",
"!$TURBO_ROOT$/packages/devtools/client/.nuxt/**",
"!$TURBO_ROOT$/packages/devtools/client/.output/**",
"!$TURBO_ROOT$/packages/devtools/client/node_modules/**",
"!$TURBO_ROOT$/packages/devtools/client/dist",
"$TURBO_ROOT$/packages/devtools/src/**",
"$TURBO_ROOT$/packages/devtools/scripts/**",
"$TURBO_ROOT$/packages/devtools/build.config.ts",
"$TURBO_ROOT$/packages/devtools/tsconfig.json",
"$TURBO_ROOT$/packages/devtools-ui-kit/src/**"
],
"outputLogs": "new-only",
"outputs": [
"dist/**"
]
},
"@nuxt/devtools-onboard#build": {
// `@nuxt/devtools` is only an optional peer resolved at run time from
// the user's project; nothing of it is imported, so its build is not
// needed here.
"dependsOn": [],
"outputLogs": "new-only",
"outputs": [
"dist/**"
]
},
"@nuxt/devtools#build": {
// The `@nuxt/devtools` *module* only depends on `@nuxt/devtools-kit`;
// `@nuxt/devtools-assets` and `@nuxt/devtools-ui-kit` are workspace
// dev/peer deps used solely by the client app (built under
// `@nuxt/devtools-assets#build`), not by the module. Depending only on
// the kit avoids regenerating the (uncacheable) client every time the
// module is packed — the module no longer ships the client.
"dependsOn": [
"@nuxt/devtools-kit#build"
],
"outputLogs": "new-only",
"outputs": [
"dist/**"
]
}
}
}