Skip to content

Commit

Permalink
add precommit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
XadillaX committed Nov 24, 2015
1 parent 9af749e commit b855545
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .jshintignore
@@ -0,0 +1 @@
node_modules
13 changes: 11 additions & 2 deletions package.json
Expand Up @@ -22,11 +22,15 @@
"cliparoo": "^1.0.0",
"coveralls": "^2.11.2",
"istanbul": "^0.3.5",
"jsxhint": "^0.15.1",
"mocha": "^2.0.1",
"precommit-hook": "^3.0.0",
"should": "^4.3.0"
},
"scripts": {
"test": "make test"
"test": "make test",
"lint": "./node_modules/.bin/jsxhint .",
"validate": "npm ls"
},
"repository": {
"type": "git",
Expand All @@ -46,5 +50,10 @@
"bugs": {
"url": "https://github.com/XadillaX/Toshihiko/issues"
},
"homepage": "https://github.com/XadillaX/Toshihiko"
"homepage": "https://github.com/XadillaX/Toshihiko",
"pre-commit": [
"lint",
"validate",
"test"
]
}

0 comments on commit b855545

Please sign in to comment.