build(npm): use the global commitlint & husky

This commit is contained in:
Cotes Chung 2022-03-13 16:47:22 +08:00
parent f0a2e2f4e1
commit da05d395fb
No known key found for this signature in database
GPG key ID: 0D9E54843167A808
2 changed files with 1 additions and 12 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
. "$(dirname "$0")/_/husky.sh" . "$(dirname "$0")/_/husky.sh"
npx --no -- commitlint --edit npx --no -- commitlint -x $(npm root -g)/@commitlint/config-conventional --edit

View file

@ -12,26 +12,15 @@
"url": "https://github.com/cotes2020/jekyll-theme-chirpy/issues" "url": "https://github.com/cotes2020/jekyll-theme-chirpy/issues"
}, },
"homepage": "https://github.com/cotes2020/jekyll-theme-chirpy#readme", "homepage": "https://github.com/cotes2020/jekyll-theme-chirpy#readme",
"scripts": {
"prepare": "husky install"
},
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"gulp": "^4.0.2", "gulp": "^4.0.2",
"gulp-concat": "^2.6.1", "gulp-concat": "^2.6.1",
"gulp-insert": "^0.5.0", "gulp-insert": "^0.5.0",
"gulp-rename": "^2.0.0", "gulp-rename": "^2.0.0",
"gulp-uglify": "^3.0.2", "gulp-uglify": "^3.0.2",
"husky": "^7.0.4",
"standard-version": "^9.3.2", "standard-version": "^9.3.2",
"uglify-js": "^3.14.3" "uglify-js": "^3.14.3"
}, },
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"standard-version": { "standard-version": {
"skip": { "skip": {
"commit": true, "commit": true,