Skip to content

Commit

Permalink
Fixed #226 - add pre-commit git hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
scofalik committed Aug 19, 2015
1 parent b277e43 commit d835306
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
npm run-script lint
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"scripts": {
"doc": "jsdoc -r lib/ -d out/server/ && jsdoc -r static/js/ -d out/dashboard/",
"lint": "jshint lib/ test/ && jscs .",
"postinstall": "bower install",
"postinstall": "bower install && rm -rf ./.git/hooks/* && cp ./hooks/* ./.git/hooks",
"test": "istanbul test node_modules/mocha/bin/_mocha -- test/ --reporter list --check-leaks --recursive",
"test-dashboard": "node lib/cli.js server run"
},
Expand Down

0 comments on commit d835306

Please sign in to comment.