|
19 | 19 | "patch": "npm version patch && git push origin master && git push origin --tags",
|
20 | 20 | "minor": "npm version minor && git push origin master && git push origin --tags",
|
21 | 21 | "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" |
23 | 24 | },
|
24 | 25 | "keywords": [
|
25 | 26 | "picture",
|
26 | 27 | "upload",
|
27 | 28 | "util"
|
28 | 29 | ],
|
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 | + }, |
33 | 47 | "author": "Molunerfinn",
|
34 | 48 | "license": "MIT",
|
35 | 49 | "devDependencies": {
|
| 50 | + "@commitlint/cli": "^7.5.2", |
| 51 | + "@picgo/bump-version": "^1.0.1", |
36 | 52 | "@types/cross-spawn": "^6.0.0",
|
37 | 53 | "@types/fs-extra": "^5.0.4",
|
38 | 54 | "@types/image-size": "^0.0.29",
|
|
42 | 58 | "@types/node": "^10.5.2",
|
43 | 59 | "@types/request-promise-native": "^1.0.15",
|
44 | 60 | "@types/resolve": "^0.0.8",
|
| 61 | + "commitizen": "^3.0.7", |
| 62 | + "conventional-changelog": "^3.0.6", |
45 | 63 | "copyfiles": "^2.1.0",
|
| 64 | + "cz-customizable": "^5.10.0", |
| 65 | + "husky": "^1.3.1", |
46 | 66 | "pre-commit": "^1.2.2",
|
47 | 67 | "tslint": "^5.10.0",
|
48 | 68 | "tslint-config-standard": "^8.0.1",
|
|
0 commit comments