Skip to content

Instantly share code, notes, and snippets.

@roryashfordbentley
Created March 19, 2015 10:12
Show Gist options
  • Save roryashfordbentley/1aaa749385474b265a1d to your computer and use it in GitHub Desktop.
Save roryashfordbentley/1aaa749385474b265a1d to your computer and use it in GitHub Desktop.
building with package.json
{
"name": "bob the builder",
"version": "0.1.0",
"description": "Build all the things",
"author": "Rory Ashford <rory@roikles.com>",
"scripts": {
"compile-sass": "node-sass --output-style compressed assets/sass/style.scss style.css && autoprefixer --map style.css",
"browserify-js": "browserify assets/js/scripts.js -o scripts.js",
"uglify-js": "uglifyjs scripts.js -o scripts.min.js -c",
"process-js": "npm run browserify-js && npm run uglify-js",
"optimise-images": "imageoptim -d assets/imgs",
"svg-to-png": "svg2png assets/imgs",
"build-images": "npm run svg-to-png && npm run optimise-images",
"watch-sass": "fsmonitor -d 'assets/sass' -s '+*.scss' npm run compile-sass",
"watch-js": "fsmonitor -d 'assets/js' -s '+*.js' npm run process-js",
"watch": "livereload & npm run watch-sass & npm run watch-js"
},
"devDependencies": {
"autoprefixer": "^5.1.0",
"browserify": "^8.1.3",
"fsmonitor": "^0.2.4",
"imageoptim-cli": "^1.11.4",
"livereload": "^0.3.6",
"node-sass": "^2.0.1",
"pixrem-cli": "^1.0.3",
"sass": "^0.5.0",
"svg2png": "^1.1.0",
"svg2png-cli": "^1.1.1",
"uglify-js": "^2.4.15"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment