Skip to content

Commit

Permalink
refactor(husky): update commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ph1p committed Feb 18, 2021
1 parent afa705b commit 717a5cc
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 7 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

./node_modules/.bin/lint-staged
160 changes: 160 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
"test-coverage": "cross-env NODE_ENV=test jest --coverage",
"test-watch": "cross-env NODE_ENV=test jest --watchAll",
"lint": "eslint ./*/*.js",
"version": "conventional-changelog -p karma -i CHANGELOG.md -s -r 0 && git add ."
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
"version": "conventional-changelog -p karma -i CHANGELOG.md -s -r 0 && git add .",
"postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable"
},
"keywords": [
"jsdoc",
Expand All @@ -24,7 +22,7 @@
"vuepress"
],
"license": "MIT",
"author": "Philip Stapelfeldt <phil@capshake.com>",
"author": "Philip Stapelfeldt <me@ph1p.dev>",
"repository": {
"url": "https://github.com/ph1p/vuepress-jsdoc.git",
"type": "git"
Expand Down Expand Up @@ -83,6 +81,7 @@
"husky": "^5.0.9",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"pinst": "^2.1.4",
"release-it": "^14.4.0"
},
"lint-staged": {
Expand Down

0 comments on commit 717a5cc

Please sign in to comment.