Skip to content

Commit 83f14dd

Browse files
committed
tidy
1 parent 25bcff6 commit 83f14dd

2 files changed

Lines changed: 68 additions & 19 deletions

File tree

packages/gitbook/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
},
120120
"scripts": {
121121
"generate": "./scripts/generate.sh",
122-
"clean": "rm -rf ./.next && rm -rf ./public/~gitbook/static/icon-symbols && rm -rf ./public/~gitbook/static/icons && rm -rf ./public/~gitbook/static/math",
122+
"clean": "rm -rf ./.next && rm -rf ./public/~gitbook/static/icons && rm -rf ./public/~gitbook/static/math",
123123
"dev": "env-cmd --silent -f ../../.env.local next --webpack",
124124
"build": "next build --webpack",
125125
"build:local": "GITBOOK_URL=http://localhost:3000 next build --webpack",
@@ -145,4 +145,4 @@
145145
"@types/react": "19.2.14",
146146
"@types/react-dom": "19.2.3"
147147
}
148-
}
148+
}

turbo.json

Lines changed: 66 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,56 +12,105 @@
1212
"tasks": {
1313
// Prepare the package for all other tasks
1414
"generate": {
15-
"dependsOn": ["^generate"],
16-
"outputs": ["dist", ".generated/**"]
15+
"dependsOn": [
16+
"^generate"
17+
],
18+
"outputs": [
19+
"dist"
20+
]
1721
},
1822
// Build the package for publishing
1923
"build": {
20-
"dependsOn": ["^build", "generate"],
21-
"outputs": [".next/**", "!.next/cache/**", "dist"]
24+
"dependsOn": [
25+
"^build",
26+
"generate"
27+
],
28+
"outputs": [
29+
".next/**",
30+
"!.next/cache/**",
31+
"dist"
32+
]
2233
},
2334
// Build the package for Cloudflare
2435
"build:cloudflare": {
25-
"dependsOn": ["^build", "generate"],
26-
"outputs": [".next/**", "!.next/cache/**", "dist", ".open-next/**"]
36+
"dependsOn": [
37+
"^build",
38+
"generate"
39+
],
40+
"outputs": [
41+
".next/**",
42+
"!.next/cache/**",
43+
"dist",
44+
".open-next/**"
45+
]
2746
},
2847
// Check the package for type errors
2948
"typecheck": {
30-
"dependsOn": ["^typecheck", "build"]
49+
"dependsOn": [
50+
"^typecheck",
51+
"build"
52+
]
3153
},
3254
// Lint the package for style errors
3355
"lint": {
34-
"dependsOn": ["^lint", "generate"]
56+
"dependsOn": [
57+
"^lint",
58+
"generate"
59+
]
3560
},
3661
// Run unit tests
3762
"unit": {
38-
"dependsOn": ["^unit", "^build", "generate"]
63+
"dependsOn": [
64+
"^unit",
65+
"^build",
66+
"generate"
67+
]
3968
},
4069
// Run end-to-end tests
4170
"e2e": {
42-
"dependsOn": ["^e2e"],
43-
"env": ["BASE_URL", "SITE_BASE_URL"]
71+
"dependsOn": [
72+
"^e2e"
73+
],
74+
"env": [
75+
"BASE_URL",
76+
"SITE_BASE_URL"
77+
]
4478
},
4579
// Run end-to-end tests for customers
4680
"e2e-customers": {
47-
"dependsOn": ["^e2e-customers"],
48-
"env": ["BASE_URL", "SITE_BASE_URL"]
81+
"dependsOn": [
82+
"^e2e-customers"
83+
],
84+
"env": [
85+
"BASE_URL",
86+
"SITE_BASE_URL"
87+
]
4988
},
5089
// Start the package in development mode for v2
5190
"dev": {
5291
"persistent": true,
5392
"cache": false,
54-
"dependsOn": ["generate", "^build"]
93+
"dependsOn": [
94+
"generate",
95+
"^build"
96+
]
5597
},
5698
// Publish the package to npm
5799
"publish-to-npm": {
58-
"dependsOn": ["build"],
100+
"dependsOn": [
101+
"build"
102+
],
59103
"cache": false,
60-
"env": ["NODE_AUTH_TOKEN", "NPM_*", "ACTIONS_ID_TOKEN_*", "SIGSTORE_*"]
104+
"env": [
105+
"NODE_AUTH_TOKEN",
106+
"NPM_*",
107+
"ACTIONS_ID_TOKEN_*",
108+
"SIGSTORE_*"
109+
]
61110
},
62111
// Clean up the package
63112
"clean": {
64113
"cache": false
65114
}
66115
}
67-
}
116+
}

0 commit comments

Comments
 (0)