Created
March 8, 2016 11:44
-
-
Save monochromer/51320bf11db50878d8b7 to your computer and use it in GitHub Desktop.
npm-tasks-boilerplate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "npm-tasks-boilerplate", | |
"version": "0.0.1", | |
"description": "", | |
"author": "Monochromer <monochromer@mail.ru>", | |
"scripts": { | |
"clean": "rm -rf build/", | |
"server": "browser-sync start --server \"build\" --files 'build/**/*.*' --directory", | |
"stylus": "stylus src/styles/main.styl -o build/css --include-css", | |
"prefix": "postcss -u autoprefixer --autoprefixer.browsers \"> 1%\" -r build/css/*", | |
"build:css": "npm run stylus && npm run prefix", | |
"watch:css": "onchange 'src/styles/**/*.*' -- npm run build:css", | |
"build:html": "jade src/templates/pages/ -o build/ -P", | |
"watch:html": "onchange 'src/templates/**/*.*' -- npm run build:html", | |
"postinstall": "npm start", | |
"build:all": "npm run build:css && npm run build:html", | |
"folders": "mkdir build build/{css,js,img,fonts}", | |
"start": "npm-run-all -p watch:css watch:html" | |
}, | |
"devDependencies": { | |
"autoprefixer": "^6.3.3", | |
"jade": "^1.11.0", | |
"npm-run-all": "^1.5.1", | |
"onchange": "^2.1.2", | |
"postcss-cli": "^2.5.1", | |
"stylus": "^0.54.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment