generator-npmsb
Version:
Generator for yeoman for npm scripts build workflow with coffeescript, karma, svg symbols and stuff
32 lines (31 loc) • 1.34 kB
JSON
{
"name": "myAwesomeApp",
"version": "0.0.1",
"scripts": {
"clean": "rm -f dist/{stylesheets/*,javascripts/*,images/*,svgs/*}",
"scss": "node-sass --output-style compressed -o dist/stylesheets app/stylesheets",
"html": "cp app/*.html dist",
"imagemin": "imagemin app/images dist/images -p",
"serve": "browser-sync start --server dist --files 'dist/stylesheets/*.css, dist/javascripts/*.js, !node_modules/**/*.html'",
"build:css": "npm run scss",
"build:html": "npm run html",
"build:js": "npm run script",
"build:images": "npm run imagemin",
"build:all": "npm run build:css && npm run build:js && npm run build:images && npm run build:html",
"watch:css": "onchange 'app/stylesheets/*.*' -- npm run build:css",
"watch:js": "onchange 'app/javascripts/*.*' -- npm run build:js",
"watch:html": "onchange 'app/*.html' -- npm run build:html",
"watch:images": "onchange 'app/images/*.*' -- npm run build:images",
"watch:all": "npm-run-all -p serve watch:css watch:js watch:html watch:images",
"postinstall": "npm run build:all && npm run watch:all"
},
"devDependencies": {
"browser-sync": "^2.11.1",
"browserify": "^13.0.0",
"imagemin-cli": "^2.1.0",
"mkdirp": "^0.5.1",
"node-sass": "^3.4.2",
"npm-run-all": "^1.5.1",
"onchange": "^2.0.0"
}
}