add opt-in githook to config

This commit is contained in:
Kent C. Dodds
2016-03-23 10:10:38 -06:00
parent f65d36b3c1
commit 9674d67693
2 changed files with 11 additions and 1 deletions

View File

@@ -15,11 +15,13 @@
"dojo": "^1.11.0",
"ecstatic": "^1.4.0",
"fs-extra": "~0.26.7",
"ghooks": "1.0.3",
"glob": "^7.0.3",
"istanbul": "0.4.2",
"jquery": "^2.2.2",
"jscs": "^2.11.0",
"lodash": "4.5.0",
"opt-cli": "1.1.1",
"platform": "^1.3.1",
"qunit-extras": "^1.5.0",
"qunitjs": "~1.22.0",
@@ -46,6 +48,12 @@
"style:test": "jscs test/*.js test/**/*.js",
"test": "npm run test:main && npm run test:fp",
"test:fp": "node test/test-fp",
"test:main": "node test/test"
"test:main": "node test/test",
"validate": "npm run style & npm run test"
},
"config": {
"ghooks": {
"pre-push": "opt --in pre-push --exec \"npm run validate\""
}
}
}