Skip to content

Commit

Permalink
Add husky for git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
VerHde committed Nov 6, 2021
1 parent 41cd0e6 commit 3f4829f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
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"

npm test
22 changes: 22 additions & 0 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"scripts": {
"test": "mocha",
"cli": "node main.js",
"docs": "jsdoc *.js"
"docs": "jsdoc *.js",
"prepare": "husky install"
},
"author": "HerHde",
"license": "MIT",
Expand All @@ -16,6 +17,7 @@
"url": "https://git.verdigado.com/verdigado/emojify-hashes.git"
},
"devDependencies": {
"husky": "^7.0.4",
"jsdoc": "^3.6.7",
"mocha": "^9.1.3"
}
Expand Down

0 comments on commit 3f4829f

Please sign in to comment.