Added pre task to start the test and serve

This commit is contained in:
CJ Patoilo 2016-10-07 16:25:14 -03:00
parent 51b161411f
commit 4a5472ba69
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,8 @@
"node": "^6.0.0"
},
"scripts": {
"prestart": "npm install",
"pretest": "npm install",
"banner": "for m in dist/*.css; do echo '/*!\n * Milligram v1.1.0\n * http://milligram.github.io\n *\n * Copyright (c) 2016 CJ Patoilo\n * Licensed under the MIT license\n*/\n' | cat - $m > temp && mv temp $m; done",
"autoprefixer": "postcss -u autoprefixer --no-map.inline --autoprefixer.browsers 'last 1 versions' -r dist/*.css",
"sass": "node-sass --output-style expanded src/milligram.sass dist/milligram.css && node-sass --output-style compressed src/milligram.sass dist/milligram.min.css",