Switch to husky for git precommit / prepush handling.

This commit is contained in:
Jürg Lehni 2016-07-09 16:28:08 +02:00
parent 7e20770126
commit cbbc7f0bbc

View file

@ -16,6 +16,8 @@
"main": "dist/paper-full.js", "main": "dist/paper-full.js",
"scripts": { "scripts": {
"prepublish": "gulp minify", "prepublish": "gulp minify",
"precommit": "gulp jshint",
"prepush": "gulp test",
"build": "gulp build", "build": "gulp build",
"dist": "gulp dist", "dist": "gulp dist",
"docs": "gulp docs", "docs": "gulp docs",
@ -23,12 +25,6 @@
"jshint": "gulp jshint", "jshint": "gulp jshint",
"test": "gulp test" "test": "gulp test"
}, },
"pre-commit": [
"jshint"
],
"pre-push": [
"test"
],
"files": [ "files": [
"AUTHORS.md", "AUTHORS.md",
"dist/", "dist/",
@ -67,11 +63,10 @@
"gulp-webserver": "^0.9.1", "gulp-webserver": "^0.9.1",
"gulp-whitespace": "^0.1.0", "gulp-whitespace": "^0.1.0",
"gulp-zip": "^3.2.0", "gulp-zip": "^3.2.0",
"husky": "^0.11.4",
"jshint": "^2.9.2", "jshint": "^2.9.2",
"jshint-summary": "^0.4.0", "jshint-summary": "^0.4.0",
"merge-stream": "^1.0.0", "merge-stream": "^1.0.0",
"pre-commit": "^1.1.3",
"pre-push": "^0.1.1",
"prepro": "^2.4.0", "prepro": "^2.4.0",
"qunitjs": "^1.23.0", "qunitjs": "^1.23.0",
"require-dir": "^0.3.0", "require-dir": "^0.3.0",