]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
tests: use husky to run tests before commits and pushes
authorDaniel Ruf <daniel@daniel-ruf.de>
Fri, 30 Mar 2018 22:10:47 +0000 (00:10 +0200)
committerDaniel Ruf <daniel@daniel-ruf.de>
Sun, 1 Apr 2018 23:41:24 +0000 (01:41 +0200)
package.json

index d1f44b97c00debff33d79389901aeb954cfa4e0a..1098c225e871df49d1f18d6adb9ed42fe191ee82 100644 (file)
@@ -22,7 +22,9 @@
     "deploy": "gulp deploy",
     "deploy:prep": "gulp deploy:prep",
     "deploy:docs": "gulp deploy:docs",
-    "deploy:beta": "gulp deploy:beta"
+    "deploy:beta": "gulp deploy:beta",
+    "precommit": "npm test",
+    "prepush": "npm test"
   },
   "dependencies": {
     "jquery": ">=3.0.0",
@@ -76,6 +78,7 @@
     "gulp-sourcemaps": "^2.6.0",
     "gulp-uglify": "^2.1.2",
     "gulp-zip": "^3.2.0",
+    "husky": "^0.14.3",
     "inquirer": "^2.0.0",
     "is-empty-object": "^1.1.1",
     "js-yaml": "^3.8.4",