Skip to content

Commit

Permalink
feat: ✨ 新增turbo配置
Browse files Browse the repository at this point in the history
  • Loading branch information
niyg-mw committed Dec 8, 2023
1 parent 0a5daf2 commit 430c464
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
"description": "",
"main": "index.js",
"scripts": {
"build": "turbo build",
"dev": "turbo dev",
"lint": "turbo lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"prepare": "husky install",
"commit": "git add -A && git cz",
"test": "echo \"Error: no test specified\" && exit 1"
"commit": "git add -A && git cz"
},
"keywords": [],
"author": "",
Expand Down
14 changes: 14 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
},
"lint": {},
"dev": {
"cache": false,
"persistent": true
}
}
}

0 comments on commit 430c464

Please sign in to comment.