Skip to content

Commit c312302

Browse files
committed
📦 Chore: add picgo bump version
1 parent 9497dfc commit c312302

File tree

3 files changed

+1582
-29
lines changed

3 files changed

+1582
-29
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)
55
![Travis (.org)](https://img.shields.io/travis/PicGo/PicGo-Core.svg?style=flat-square)
66
![npm](https://img.shields.io/npm/v/picgo.svg?style=flat-square)
7+
[![PicGo Convention](https://img.shields.io/badge/picgo-convention-blue.svg?style=flat-square)](https://github.com/PicGo/bump-version)
78

89
![](https://raw.githubusercontent.com/Molunerfinn/test/master/picgo/picgo-core-fix.jpg)
910

package.json

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,36 @@
1919
"patch": "npm version patch && git push origin master && git push origin --tags",
2020
"minor": "npm version minor && git push origin master && git push origin --tags",
2121
"major": "npm version major && git push origin master && git push origin --tags",
22-
"precommit-msg": "echo \"Start to lint your code...\" && exit 0"
22+
"cz": "git-cz",
23+
"release": "bump-version"
2324
},
2425
"keywords": [
2526
"picture",
2627
"upload",
2728
"util"
2829
],
29-
"precommit": [
30-
"precommit-msg",
31-
"lint"
32-
],
30+
"husky": {
31+
"hooks": {
32+
"pre-commit": "npm run lint",
33+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
34+
}
35+
},
36+
"config": {
37+
"commitizen": {
38+
"path": "./node_modules/cz-customizable"
39+
},
40+
"cz-customizable": {
41+
"config": "./node_modules/@picgo/bump-version/.cz-config.js"
42+
}
43+
},
44+
"commitlint": {
45+
"extends": ["./node_modules/@picgo/bump-version/commitlint-picgo"]
46+
},
3347
"author": "Molunerfinn",
3448
"license": "MIT",
3549
"devDependencies": {
50+
"@commitlint/cli": "^7.5.2",
51+
"@picgo/bump-version": "^1.0.1",
3652
"@types/cross-spawn": "^6.0.0",
3753
"@types/fs-extra": "^5.0.4",
3854
"@types/image-size": "^0.0.29",
@@ -42,7 +58,11 @@
4258
"@types/node": "^10.5.2",
4359
"@types/request-promise-native": "^1.0.15",
4460
"@types/resolve": "^0.0.8",
61+
"commitizen": "^3.0.7",
62+
"conventional-changelog": "^3.0.6",
4563
"copyfiles": "^2.1.0",
64+
"cz-customizable": "^5.10.0",
65+
"husky": "^1.3.1",
4666
"pre-commit": "^1.2.2",
4767
"tslint": "^5.10.0",
4868
"tslint-config-standard": "^8.0.1",

0 commit comments

Comments
 (0)