Skip to content

Commit

Permalink
Merge pull request #193 from storybookjs/improve-turbo
Browse files Browse the repository at this point in the history
Improve turbo
  • Loading branch information
cdedreuille authored Jul 15, 2024
2 parents 69fa61e + 88ba4e1 commit 0f96803
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/frontpage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "next dev",
"build": "npm run fetch-docs && npm run generate-redirects && next build",
"build": "next build",
"start": "next start",
"lint": "next lint",
"typecheck": "tsc --noEmit",
Expand Down
18 changes: 15 additions & 3 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@
"typecheck": {
"dependsOn": ["^typecheck"]
},
"generate-redirects": {
"dependsOn": [],
"inputs": ["./apps/frontpage/scripts/raw-redirects"],
"outputs": ["./apps/frontpage/generated-redirects.json"]
},
"fetch-docs": {
"dependsOn": ["^fetch-docs"]
"dependsOn": [],
"cache": false
},
"storybook": {
"dependsOn": ["^storybook"]
Expand All @@ -21,14 +27,20 @@
"inputs": ["$TURBO_DEFAULT$", ".env"]
},
"build": {
"dependsOn": ["^build"],
"dependsOn": ["fetch-docs", "generate-redirects", "^build"],
"outputs": [
"dist/**",
".next/**",
"!.next/cache/**",
"storybook-static/**"
],
"inputs": ["$TURBO_DEFAULT$", ".env"]
"inputs": [
"$TURBO_DEFAULT$",
".env",
"./apps/frontpage/content/docs/**",
"./apps/frontpage/content/snippets/**",
"./apps/frontpage/public/docs-assets/**"
]
},
"clean": {
"cache": false
Expand Down

0 comments on commit 0f96803

Please sign in to comment.