Skip to content

Commit

Permalink
Improve turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
cdedreuille committed Jul 15, 2024
1 parent 69fa61e commit d3cc1d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 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
13 changes: 11 additions & 2 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,17 @@
"typecheck": {
"dependsOn": ["^typecheck"]
},
"generate-redirects": {
"dependsOn": [],
"outputs": ["./apps/frontpage/generated-redirects.json"]
},
"fetch-docs": {
"dependsOn": ["^fetch-docs"]
"dependsOn": [],
"outputs": [
"./apps/frontpage/content/docs/**",
"./apps/frontpage/content/snippets/**",
"./apps/frontpage/public/docs-assets/**"
]
},
"storybook": {
"dependsOn": ["^storybook"]
Expand All @@ -21,7 +30,7 @@
"inputs": ["$TURBO_DEFAULT$", ".env"]
},
"build": {
"dependsOn": ["^build"],
"dependsOn": ["fetch-docs", "generate-redirects", "^build"],
"outputs": [
"dist/**",
".next/**",
Expand Down

0 comments on commit d3cc1d1

Please sign in to comment.