generated from unplugin/unplugin-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add turbo for build, lint, and test scripts
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
Showing
6 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# misc | ||
.DS_Store | ||
.turbo/ | ||
.wrangler/ | ||
|
||
# build artifacts | ||
dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,5 @@ yarn-error.log* | |
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
Unknown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
"description": "", | ||
"author": "ryoppippi", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "turbo build", | ||
"lint": "turbo lint", | ||
"test": "turbo test" | ||
}, | ||
"workspaces": [ | ||
"examples/*", | ||
"packages/*" | ||
|
@@ -18,5 +23,9 @@ | |
"vite-react", | ||
"vite-vanilla", | ||
"workerd" | ||
] | ||
], | ||
"devDependencies": { | ||
"turbo": "^2.0.1" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} |