Skip to content

Commit

Permalink
chore(deps): add husky
Browse files Browse the repository at this point in the history
  • Loading branch information
killmenot committed May 8, 2021
1 parent 129def7 commit abb721b
Show file tree
Hide file tree
Showing 3 changed files with 10 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 @@
_
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint
npm run test
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@
"lint": "jshint index.js test.js",
"test": "mocha",
"coverage": "nyc --reporter=html --reporter=text mocha",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"prepare": "husky install"
},
"pre-commit": [
"lint",
"test"
],
"nyc": {
"all": true,
"include": [
Expand All @@ -51,9 +48,9 @@
"devDependencies": {
"chai": "^4.3.4",
"coveralls": "^3.1.0",
"husky": "^6.0.0",
"jshint": "^2.12.0",
"mocha": "^8.4.0",
"nyc": "^15.1.0",
"pre-commit": "^1.2.2"
"nyc": "^15.1.0"
}
}

0 comments on commit abb721b

Please sign in to comment.