diff --git a/package.json b/package.json index c5b0ec2..15daa0d 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,7 @@ "backstopjs": "^2.3.3", "banner-cli": "^0.6.0", "browser-sync": "^2.18.2", + "husky": "^0.11.6", "node-sass": "^3.13.0", "npm-run-all": "^2.3.0", "nyc": "^10.0.0", @@ -72,14 +73,15 @@ "sass": "node-sass --output-style expanded src/milligram.sass dist/milligram.css && 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", "banner": "banner-cli dist/*.css", - "watch": "onchange src -- npm run build", + "watch": "onchange src -- run-s build", "serve": "browser-sync start --no-notify -s test --ss dist -f dist", "test": "run-s lint ava", "lint": "sass-lint -c .sasslintrc \"src/*.sass\" --verbose --no-exit", "ava": "nyc ava", + "backstop": "run-s build && run-p serve compare", "reference": "backstop reference --configPath=backstop.conf.js", "compare": "backstop test --configPath=backstop.conf.js", - "backstop": "run-s build && run-p serve compare", + "precommit": "run-s build test && git add dist/*", "prestart": "npm install", "pretest": "npm install" } diff --git a/readme.md b/readme.md index ab392f4..406dda1 100644 --- a/readme.md +++ b/readme.md @@ -3,7 +3,7 @@ > A minimalist CSS framework. [![Travis Status](https://travis-ci.org/milligram/milligram.svg?branch=master)](https://travis-ci.org/milligram/milligram?branch=master) -[![AppVeyor Status](https://ci.appveyor.com/api/projects/status/wabkk000uh6d97xk?svg=true)](https://ci.appveyor.com/project/cjpatoilo/milligram) +[![AppVeyor Status](https://ci.appveyor.com/api/projects/status/xcm8meymwerq0r82?svg=true)](https://ci.appveyor.com/project/cjpatoilo/milligram) [![Codacy Status](https://img.shields.io/codacy/grade/848fb4bd6902434fab0bcfb5461284fe/master.svg)](https://www.codacy.com/app/milligram/milligram/dashboard) [![Dependencies Status](https://david-dm.org/milligram/milligram.svg)](https://travis-ci.org/milligram/milligram?branch=master) [![Download Status](https://img.shields.io/npm/dt/milligram.svg)](https://www.npmjs.com/package/milligram)