Skip to content

Commit

Permalink
chore: Add pipeline in turbo.json #47
Browse files Browse the repository at this point in the history
  • Loading branch information
dgd03146 committed May 22, 2024
1 parent 93d19c2 commit 21e2a80
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"web": "pnpm --filter web",
"admin": "pnpm --filter admin",
"api": "pnpm --filter api",
"workshop": "pnpm --filter workshop"
"workshop": "pnpm --filter workshop",
"build-storybook": "turbo run build-storybook --filter=workshop",
"chromatic": "turbo run chromatic --filter=workshop"
},
"lint-staged": {
"*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}": [
Expand Down
35 changes: 35 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**"]
},
"lint": {
"dependsOn": ["^lint"]
},
"format": {
"dependsOn": ["^format"]
},
"test": {
"dependsOn": ["^test"]
},
"test:e2e": {
"dependsOn": ["^test:e2e"]
},
"test:watch": {
"dependsOn": ["^test:watch"]
},
"build-storybook": {
"dependsOn": ["^build-storybook"]
},
"chromatic": {
"dependsOn": ["^chromatic"]
},
"dev": {
"cache": false,
"persistent": true
}
}
}

0 comments on commit 21e2a80

Please sign in to comment.