mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-11 21:39:22 +00:00
68 lines
2.0 KiB
JSON
68 lines
2.0 KiB
JSON
{
|
|
"$schema": "https://turbo.build/schema.json",
|
|
"ui": "stream",
|
|
"globalEnv": [
|
|
"NODE_ENV",
|
|
"CI",
|
|
"ARGOS_*",
|
|
"GITHUB_*",
|
|
"GITBOOK_*",
|
|
"NEXT_SERVER_ACTIONS_ENCRYPTION_KEY"
|
|
],
|
|
"tasks": {
|
|
// Prepare the package for all other tasks
|
|
"generate": {
|
|
"dependsOn": ["^generate"],
|
|
"outputs": ["dist"]
|
|
},
|
|
// Build the package for publishing
|
|
"build": {
|
|
"dependsOn": ["^build", "generate"],
|
|
"outputs": [".next/**", "!.next/cache/**", "dist"]
|
|
},
|
|
// Build the package for Cloudflare
|
|
"build:cloudflare": {
|
|
"dependsOn": ["^build", "generate"],
|
|
"outputs": [".next/**", "!.next/cache/**", "dist", ".open-next/**"]
|
|
},
|
|
// Check the package for type errors
|
|
"typecheck": {
|
|
"dependsOn": ["^typecheck", "build"]
|
|
},
|
|
// 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", "SITE_BASE_URL"]
|
|
},
|
|
// Run end-to-end tests for customers
|
|
"e2e-customers": {
|
|
"dependsOn": ["^e2e-customers"],
|
|
"env": ["BASE_URL", "SITE_BASE_URL"]
|
|
},
|
|
// Start the package in development mode for v2
|
|
"dev": {
|
|
"persistent": true,
|
|
"cache": false,
|
|
"dependsOn": ["generate", "^build"]
|
|
},
|
|
// Publish the package to npm
|
|
"publish-to-npm": {
|
|
"dependsOn": ["build"],
|
|
"cache": false,
|
|
"env": ["NODE_AUTH_TOKEN", "NPM_*", "ACTIONS_ID_TOKEN_*", "SIGSTORE_*"]
|
|
},
|
|
// Clean up the package
|
|
"clean": {
|
|
"cache": false
|
|
}
|
|
}
|
|
}
|