Skip to content
Permalink
Branch: master
Find file Copy path
60 lines (59 sloc) 2.15 KB
{
"name": "npm-build-boilerplate",
"version": "1.2.0",
"description": "A set of common build tasks written with npm scripts.",
"author": "Damon Bauer <hello@damonbauer.me>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/damonbauer/npm-build-boilerplate"
},
"bugs": "https://github.com/damonbauer/npm-build-boilerplate/issues",
"keywords": [
"npm",
"scripts",
"npm scripts",
"watch",
"minify",
"compress"
],
"scripts": {
"clean": "rimraf dist/{css/*,js/*,images/*}",
"autoprefixer": "postcss -u autoprefixer -r dist/css/*",
"scss": "node-sass --output-style compressed -o dist/css src/scss",
"lint": "eslint src/js || true",
"lint-scss": "stylelint src/scss/*.scss --syntax scss || true",
"uglify": "mkdirp dist/js -p && uglifyjs src/js/*.js -m -o dist/js/app.js && uglifyjs src/js/*.js -m -c -o dist/js/app.min.js",
"imagemin": "imagemin src/images/* -o dist/images",
"icons": "svgo -f src/images/icons -o dist/images/icons && svg-sprite-generate -d dist/images/icons -o dist/images/icons/sprite.svg",
"serve": "browser-sync start --server --files \"dist/css/*.css, dist/js/*.js, **/*.html, !node_modules/**/*.html\"",
"build:css": "run-s lint-scss scss autoprefixer",
"build:js": "run-s lint uglify",
"build:images": "run-s imagemin icons",
"build": "run-s build:*",
"watch:css": "onchange \"src/scss\" -- run-s build:css",
"watch:js": "onchange \"src/js\" -- run-s build:js",
"watch:images": "onchange \"src/images\" -- run-s build:images",
"watch": "run-p serve watch:*",
"postinstall": "run-s build watch"
},
"devDependencies": {
"autoprefixer": "^6.3.6",
"browser-sync": "^2.12.8",
"eslint": "^2.10.2",
"eslint-config-standard": "^5.3.1",
"eslint-plugin-promise": "^1.3.0",
"eslint-plugin-standard": "^1.3.2",
"imagemin-cli": "^3.0.0",
"mkdirp": "^0.5.1",
"node-sass": "^3.7.0",
"npm-run-all": "^2.1.1",
"onchange": "^2.4.0",
"postcss-cli": "^2.5.2",
"rimraf": "^2.5.4",
"stylelint": "^7.8.0",
"svg-sprite-generator": "0.0.7",
"svgo": "^0.6.6",
"uglify-js": "^2.6.2"
}
}
You can’t perform that action at this time.