Joseph Hale's Technical Blog
0

Configure Feed

Select the types of activity you want to include in your feed.

build(npm): use the global `commitlint` & `husky`

Cotes Chung (Mar 13, 2022, 4:47 PM +0800) da05d395 f0a2e2f4

+1 -12
+1 -1
.husky/commit-msg
··· 1 1 #!/bin/sh 2 2 . "$(dirname "$0")/_/husky.sh" 3 3 4 - npx --no -- commitlint --edit 4 + npx --no -- commitlint -x $(npm root -g)/@commitlint/config-conventional --edit
-11
package.json
··· 12 12 "url": "https://github.com/cotes2020/jekyll-theme-chirpy/issues" 13 13 }, 14 14 "homepage": "https://github.com/cotes2020/jekyll-theme-chirpy#readme", 15 - "scripts": { 16 - "prepare": "husky install" 17 - }, 18 15 "devDependencies": { 19 - "@commitlint/cli": "^16.2.1", 20 - "@commitlint/config-conventional": "^16.2.1", 21 16 "gulp": "^4.0.2", 22 17 "gulp-concat": "^2.6.1", 23 18 "gulp-insert": "^0.5.0", 24 19 "gulp-rename": "^2.0.0", 25 20 "gulp-uglify": "^3.0.2", 26 - "husky": "^7.0.4", 27 21 "standard-version": "^9.3.2", 28 22 "uglify-js": "^3.14.3" 29 - }, 30 - "commitlint": { 31 - "extends": [ 32 - "@commitlint/config-conventional" 33 - ] 34 23 }, 35 24 "standard-version": { 36 25 "skip": {