diff --git a/package.json b/package.json index 0e4a27c1..db37dceb 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,9 @@ "ciao": "node node_modules/ciao/bin/ciao -c test/ciao.json test/ciao", "coverage": "node_modules/.bin/istanbul cover test/unit/run.js", "audit": "npm shrinkwrap; node node_modules/nsp/bin/nspCLI.js audit-shrinkwrap; rm npm-shrinkwrap.json;", - "docs": "./bin/generate-docs" + "docs": "./bin/generate-docs", + "lint": "jshint .", + "validate": "npm ls" }, "repository": { "type": "git", @@ -66,5 +68,10 @@ "proxyquire": "^1.4.0", "tap-dot": "1.0.4", "tape": "^2.13.4" - } -} + }, + "pre-commit": [ + "lint", + "validate", + "test" + ] +} \ No newline at end of file