From ee34b216799ba0e16ad4832bb4ff0583de23a83d Mon Sep 17 00:00:00 2001 From: Willian Justen Date: Sat, 30 Jul 2016 01:30:33 -0300 Subject: [PATCH] Add husky and precommit hook --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7ca054f..ba6c850 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ }, "devDependencies": { "autoprefixer": "^6.3.6", + "husky": "^0.11.6", "node-sass": "^3.7.0", "npm-run-all": "^2.1.1", "onchange": "^2.4.0", @@ -62,6 +63,7 @@ "sass:compressed": "node-sass --output-style compressed src/milligram.sass dist/milligram.min.css", "autoprefixer": "postcss -u autoprefixer --no-map.inline --autoprefixer.browsers 'last 1 versions' -r dist/*.css", "watch": "onchange src -- npm run build", - "build": "npm-run-all sass:expanded sass:compressed autoprefixer banner:expanded banner:compressed" + "build": "npm-run-all sass:expanded sass:compressed autoprefixer banner:expanded banner:compressed", + "precommit": "npm run build && git add dist/**" } }