Added a precommit-hook

This commit is contained in:
Mario Basic
2015-06-18 13:59:34 +02:00
parent 4c968263f7
commit dd2263d37e
2 changed files with 11 additions and 2 deletions

6
.validate.json Normal file
View File

@@ -0,0 +1,6 @@
{
"scripts": {
"lint": "jshint ."
},
"pre-commit": ["lint", "validate", "test"]
}

View File

@@ -1,8 +1,10 @@
{
"scripts": {
"test": "jest && mocha --compilers js:mocha-traceur tests/**/*.spec.js && jsxhint --jsx-only .",
"start": "npm install && bower install && gulp"
"test": "jest && mocha --compilers js:mocha-traceur tests/**/*.spec.js",
"start": "npm install && bower install && gulp",
"lint": "jsxhint --jsx-only ."
},
"pre-commit": ["lint"],
"jest": {
"testFileExtensions": [
"jest.js"
@@ -23,6 +25,7 @@
"mocha": "^2.2.5",
"mocha-sinon": "^1.1.4",
"mocha-traceur": "^2.1.0",
"precommit-hook": "^2.0.1",
"react-tools": "^0.13.3",
"sinon": "^1.14.1"
},