|
15 | 15 | "local-types"
|
16 | 16 | ],
|
17 | 17 | "scripts": {
|
| 18 | + "commit": "cz", |
18 | 19 | "prepublishOnly": "yarn build",
|
19 | 20 | "start": "parcel examples/index.html --out-dir temp/server --cache-dir temp/cache ",
|
20 | 21 | "build": "yarn build:rollup && yarn build:tsc",
|
21 | 22 | "build:rollup": " rollup --config config/rollup.config.js",
|
22 | 23 | "build:tsc": "ts-node config/move-files.ts"
|
23 | 24 | },
|
| 25 | + "husky": { |
| 26 | + "hooks": { |
| 27 | + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", |
| 28 | + "pre-commit": "yarn build", |
| 29 | + "pre-push": "yarn build" |
| 30 | + } |
| 31 | + }, |
| 32 | + "config": { |
| 33 | + "commitizen": { |
| 34 | + "path": "./node_modules/cz-conventional-changelog" |
| 35 | + } |
| 36 | + }, |
| 37 | + "commitlint": { |
| 38 | + "extends": [ |
| 39 | + "@commitlint/config-conventional" |
| 40 | + ] |
| 41 | + }, |
24 | 42 | "peerDependencies": {
|
25 | 43 | "react": "^16.9.0",
|
26 | 44 | "react-dom": "^16.9.0"
|
|
32 | 50 | "tiny-invariant": "^1.0.6"
|
33 | 51 | },
|
34 | 52 | "devDependencies": {
|
| 53 | + "@commitlint/cli": "^11.0.0", |
| 54 | + "@commitlint/config-conventional": "^11.0.0", |
35 | 55 | "@fortawesome/fontawesome-svg-core": "^1.2.25",
|
36 | 56 | "@fortawesome/free-solid-svg-icons": "^5.11.2",
|
37 | 57 | "@fortawesome/react-fontawesome": "^0.1.7",
|
|
44 | 64 | "@types/react-dom": "16.9.0",
|
45 | 65 | "@types/styled-components": "^4.1.19",
|
46 | 66 | "cheerio": "^1.0.0-rc.3",
|
| 67 | + "commitizen": "^4.2.1", |
47 | 68 | "copy-dir": "^1.2.0",
|
| 69 | + "cz-conventional-changelog": "^3.3.0", |
48 | 70 | "doctoc": "^1.4.0",
|
| 71 | + "husky": "^4.3.0", |
49 | 72 | "json-beautify": "^1.1.1",
|
50 | 73 | "parcel-bundler": "^1.12.4",
|
51 | 74 | "react": "^16.9.0",
|
|
0 commit comments