Organizing the tasks

This commit is contained in:
CJ Patoilo 2016-12-08 19:56:38 -03:00
parent 6fa913c22a
commit 4c42475c8c

View File

@ -61,27 +61,28 @@
"nyc": "^10.0.0", "nyc": "^10.0.0",
"onchange": "^2.5.0", "onchange": "^2.5.0",
"postcss-cli": "^2.6.0", "postcss-cli": "^2.6.0",
"rimraf": "^2.5.4",
"sass-lint": "^1.10.2" "sass-lint": "^1.10.2"
}, },
"engines": { "engines": {
"node": "^7.0.0" "node": "^7.0.0"
}, },
"scripts": { "scripts": {
"prestart": "npm install", "start": "run-p build watch serve",
"pretest": "npm install", "build": "run-s clean sass autoprefixer banner",
"banner": "banner-cli dist/*.css", "clean": "rimraf dist",
"clean": "rm -rf dist",
"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",
"lint": "sass-lint -c .sasslintrc \"src/*.sass\" --verbose --no-exit", "lint": "sass-lint -c .sasslintrc \"src/*.sass\" --verbose --no-exit",
"build": "run-s clean lint sass autoprefixer banner", "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 -- npm run build",
"serve": "browser-sync start --no-notify -s test --ss dist -f dist", "serve": "browser-sync start --no-notify -s test --ss dist -f dist",
"start": "run-p build watch serve", "test": "lint && nyc ava",
"test": "nyc ava",
"coveralls": "nyc report --reporter=text-lcov | coveralls", "coveralls": "nyc report --reporter=text-lcov | coveralls",
"reference": "backstop reference --configPath=backstop.conf.js", "reference": "backstop reference --configPath=backstop.conf.js",
"compare": "backstop test --configPath=backstop.conf.js", "compare": "backstop test --configPath=backstop.conf.js",
"backstop": "run-s build && run-p serve compare" "backstop": "run-s build && run-p serve compare",
"prestart": "npm install",
"pretest": "npm install"
} }
} }