Skip to content

Instantly share code, notes, and snippets.

@monochromer
Created March 8, 2016 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monochromer/51320bf11db50878d8b7 to your computer and use it in GitHub Desktop.
Save monochromer/51320bf11db50878d8b7 to your computer and use it in GitHub Desktop.
npm-tasks-boilerplate
{
"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