From cbbc7f0bbcaef450f77489465b013169448b5983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 9 Jul 2016 16:28:08 +0200 Subject: [PATCH] Switch to husky for git precommit / prepush handling. --- package.json | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index eac18a39..210231f0 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,8 @@ "main": "dist/paper-full.js", "scripts": { "prepublish": "gulp minify", + "precommit": "gulp jshint", + "prepush": "gulp test", "build": "gulp build", "dist": "gulp dist", "docs": "gulp docs", @@ -23,12 +25,6 @@ "jshint": "gulp jshint", "test": "gulp test" }, - "pre-commit": [ - "jshint" - ], - "pre-push": [ - "test" - ], "files": [ "AUTHORS.md", "dist/", @@ -67,11 +63,10 @@ "gulp-webserver": "^0.9.1", "gulp-whitespace": "^0.1.0", "gulp-zip": "^3.2.0", + "husky": "^0.11.4", "jshint": "^2.9.2", "jshint-summary": "^0.4.0", "merge-stream": "^1.0.0", - "pre-commit": "^1.1.3", - "pre-push": "^0.1.1", "prepro": "^2.4.0", "qunitjs": "^1.23.0", "require-dir": "^0.3.0",