chore: add a precommit hook

This commit is contained in:
Gajus Kuizinas
2016-11-29 17:49:57 +00:00
parent e6ebaec387
commit c6952fa1e1
+3 -1
View File
@@ -26,7 +26,8 @@
"lint": "NODE_ENV=development eslint ./src ./tests", "lint": "NODE_ENV=development eslint ./src ./tests",
"test": "npm run build && npm run lint && NODE_ENV=development mocha --compilers js:babel-register", "test": "npm run build && npm run lint && NODE_ENV=development mocha --compilers js:babel-register",
"build": "NODE_ENV=production babel --source-maps --copy-files ./src --out-dir ./dist", "build": "NODE_ENV=production babel --source-maps --copy-files ./src --out-dir ./dist",
"create-index": "node ./dist/bin/create-index ./src/utilities" "create-index": "node ./dist/bin/create-index ./src/utilities",
"precommit": "npm run test"
}, },
"devDependencies": { "devDependencies": {
"babel-cli": "^6.18.0", "babel-cli": "^6.18.0",
@@ -38,6 +39,7 @@
"chai": "^3.5.0", "chai": "^3.5.0",
"eslint": "^3.9.1", "eslint": "^3.9.1",
"eslint-config-canonical": "^4.0.0", "eslint-config-canonical": "^4.0.0",
"husky": "^0.11.9",
"mocha": "^3.1.2" "mocha": "^3.1.2"
}, },
"dependencies": { "dependencies": {