-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
turbo.json
62 lines (62 loc) · 1.93 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
{
"$schema": "https://turbo.build/schema.json",
"ui": "tui",
"globalEnv": ["NODE_ENV", "CI", "ARGOS_*", "GITHUB_*", "GITBOOK_*", "SENTRY_*"],
"tasks": {
// Prepare the package for all other tasks
"generate": {
"dependsOn": ["^generate"],
"outputs": ["dist"]
},
"@gitbook/icons#generate": {
"dependsOn": ["^generate"],
"outputs": ["data/*.json"]
},
// Build the package for publishing
"build": {
"dependsOn": ["^build", "generate"],
"outputs": [".next/**", "!.next/cache/**", "dist"]
},
// Build the package for Cloudflare Pages
"build:cloudflare": {
"dependsOn": ["^build", "generate"]
},
// Check the package for type errors
"typecheck": {
"dependsOn": ["^typecheck", "^build", "generate"]
},
// Lint the package for style errors
"lint": {
"dependsOn": ["^lint", "generate"]
},
// Run unit tests
"unit": {
"dependsOn": ["^unit", "^build", "generate"]
},
// Run end-to-end tests
"e2e": {
"dependsOn": ["^e2e"],
"env": ["BASE_URL"]
},
// Start the package in development mode
"dev": {
"persistent": true,
"cache": false,
"dependsOn": ["generate"]
},
// Script run when the package is deployed
"release": {
"dependsOn": ["^release", "build"],
"env": ["CLOUDFLARE_ACCOUNT_ID", "CLOUDFLARE_API_TOKEN"]
},
// Script to run when deploying on main to preview/staging
"release:preview": {
"dependsOn": ["^release:preview", "build"],
"env": ["CLOUDFLARE_ACCOUNT_ID", "CLOUDFLARE_API_TOKEN"]
},
// Clean up the package
"clean": {
"cache": false
}
}
}