From 30f1e3b8107556f1a7e55ec4729c372474ea7808 Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Wed, 23 Jul 2014 10:58:17 -0700 Subject: [PATCH] add husky and run jshint as a pre-commit hook --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a43b2a35dd7b..80be5db55129 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "grunt-contrib-watch": "~0.5.3", "grunt-mocha": "~0.4.10", "http-proxy": "~1.1.4", + "husky": "^0.6.0", "istanbul": "~0.2.4", "load-grunt-config": "~0.7.0", "lodash": "~2.4.1", @@ -31,7 +32,8 @@ }, "scripts": { "test": "grunt test", - "server": "grunt server" + "server": "grunt server", + "precommit": "grunt jshint" }, "repository": { "type": "git",