Skip to content

Commit

Permalink
chore: added lint and test in pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy committed Oct 21, 2019
1 parent 0ff522c commit 3e11cb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"build": "node ./node_modules/gulp/bin/gulp build",
"watch-compile": "npm run build -- --watch",
"watch": "node ./node_modules/gulp/bin/gulp watch",
"test": "./scripts/test.sh",
"test": "npm run lint && ./scripts/test.sh",
"clean": "./scripts/clean.sh",
"publish": "./scripts/npm_publish/index.js publish",
"pub": "./node_modules/.bin/verpub publish",
Expand Down Expand Up @@ -101,6 +101,7 @@
"dependencies": {},
"husky": {
"hooks": {
"pre-commit": "npm run test",
"commit-msg": "npx validate-commit-msg"
}
},
Expand Down

0 comments on commit 3e11cb6

Please sign in to comment.