Skip to content

Commit 898a932

Browse files
committed
build(projects): add git hooks and add scripts
1 parent 2ca323b commit 898a932

File tree

3 files changed

+2093
-910
lines changed

3 files changed

+2093
-910
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# @soybeanjs/request
2+
3+
a request tool based on axios

package.json

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,40 @@
88
],
99
"scripts": {
1010
"build": "tsup",
11-
"prepare": "husky install"
11+
"lint": "eslint . --fix",
12+
"commit": "soy git-commit",
13+
"cleanup": "soy cleanup",
14+
"update-pkg": "soy update-pkg",
15+
"update-version": "bumpp package.json",
16+
"publish-pkg": "pnpm -r publish --access public",
17+
"release": "pnpm update-version && pnpm publish-pkg"
1218
},
1319
"peerDependencies": {
1420
"axios": "^1.1.3",
1521
"form-data": "^4.0.0",
1622
"qs": "^6.11.0"
1723
},
1824
"devDependencies": {
25+
"@soybeanjs/cli": "^0.1.5",
1926
"@types/qs": "^6.9.7",
20-
"axios": "^1.1.3",
21-
"commitlint": "^17.2.0",
22-
"cz-git": "^1.3.12",
23-
"czg": "^1.3.12",
24-
"eslint": "^8.26.0",
25-
"eslint-config-soybeanjs": "^0.1.1",
27+
"axios": "^1.2.2",
28+
"bumpp": "^8.2.1",
29+
"eslint": "^8.31.0",
30+
"eslint-config-soybeanjs": "^0.2.1",
2631
"form-data": "^4.0.0",
27-
"husky": "^8.0.2",
32+
"lint-staged": "^13.1.0",
2833
"qs": "^6.11.0",
29-
"tsup": "^6.3.0",
30-
"typescript": "^4.8.4"
34+
"simple-git-hooks": "^2.8.1",
35+
"tsup": "^6.5.0",
36+
"typescript": "^4.9.4"
37+
},
38+
"simple-git-hooks": {
39+
"commit-msg": "pnpm soybean git-commit-verify",
40+
"pre-commit": "pnpm exec lint-staged --concurrent false"
41+
},
42+
"lint-staged": {
43+
"*": [
44+
"eslint . --fix"
45+
]
3146
}
3247
}

0 commit comments

Comments
 (0)