Skip to content

Commit

Permalink
feat: Add turbo for build, lint, and test scripts
Browse files Browse the repository at this point in the history
This commit introduces turbo, a high-speed npm package runner, into the
project. It adds turbo as a devDependency in package.json and defines
various scripts such as build, lint, and test to use turbo. It also
includes a turbo.json configuration file for task dependencies. The
.gitignore files are updated to ignore turbo related directories.
  • Loading branch information
ryoppippi committed Jun 5, 2024
1 parent 2871ca0 commit 01728d9
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# misc
.DS_Store
.turbo/
.wrangler/

# build artifacts
dist
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions examples/nextjs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

Unknown
1 change: 0 additions & 1 deletion examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"dev": "bun -b next dev",
"build": "bun -b next build",
"start": "bun -b next start",
"lint": "bun -b next lint",
"prepare": "ts-patch install && typia patch"
},
"dependencies": {
Expand Down
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"description": "",
"author": "ryoppippi",
"license": "MIT",
"scripts": {
"build": "turbo build",
"lint": "turbo lint",
"test": "turbo test"
},
"workspaces": [
"examples/*",
"packages/*"
Expand All @@ -18,5 +23,9 @@
"vite-react",
"vite-vanilla",
"workerd"
]
],
"devDependencies": {
"turbo": "^2.0.1"
},
"packageManager": "[email protected]"
}
21 changes: 21 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"prepare": {
"dependsOn": ["^prepare"]
},
"build": {
"dependsOn": ["^prepare", "^build"]
},
"lint": {
"dependsOn": ["^lint"]
},
"test": {
"dependsOn": ["^test"]
},
"dev": {
"persistent": true,
"cache": false
}
}
}

0 comments on commit 01728d9

Please sign in to comment.