Add husky and precommit hook
This commit is contained in:
parent
b0f4fc2c9e
commit
ee34b21679
@ -47,6 +47,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "^6.3.6",
|
"autoprefixer": "^6.3.6",
|
||||||
|
"husky": "^0.11.6",
|
||||||
"node-sass": "^3.7.0",
|
"node-sass": "^3.7.0",
|
||||||
"npm-run-all": "^2.1.1",
|
"npm-run-all": "^2.1.1",
|
||||||
"onchange": "^2.4.0",
|
"onchange": "^2.4.0",
|
||||||
@ -62,6 +63,7 @@
|
|||||||
"sass:compressed": "node-sass --output-style compressed src/milligram.sass dist/milligram.min.css",
|
"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",
|
"autoprefixer": "postcss -u autoprefixer --no-map.inline --autoprefixer.browsers 'last 1 versions' -r dist/*.css",
|
||||||
"watch": "onchange src -- npm run build",
|
"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/**"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user