From da05d395fbccfebd0dcd496bd14d8196844c3269 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun, 13 Mar 2022 16:47:22 +0800 Subject: [PATCH] build(npm): use the global `commitlint` & `husky` --- .husky/commit-msg | 2 +- package.json | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 7fed485..4037788 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -npx --no -- commitlint --edit +npx --no -- commitlint -x $(npm root -g)/@commitlint/config-conventional --edit diff --git a/package.json b/package.json index a17cfe9..0df4c73 100644 --- a/package.json +++ b/package.json @@ -12,26 +12,15 @@ "url": "https://github.com/cotes2020/jekyll-theme-chirpy/issues" }, "homepage": "https://github.com/cotes2020/jekyll-theme-chirpy#readme", - "scripts": { - "prepare": "husky install" - }, "devDependencies": { - "@commitlint/cli": "^16.2.1", - "@commitlint/config-conventional": "^16.2.1", "gulp": "^4.0.2", "gulp-concat": "^2.6.1", "gulp-insert": "^0.5.0", "gulp-rename": "^2.0.0", "gulp-uglify": "^3.0.2", - "husky": "^7.0.4", "standard-version": "^9.3.2", "uglify-js": "^3.14.3" }, - "commitlint": { - "extends": [ - "@commitlint/config-conventional" - ] - }, "standard-version": { "skip": { "commit": true,