Skip to content

Instantly share code, notes, and snippets.

@thefoxis
Created November 13, 2015 10:48
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 thefoxis/60391fb8951634ea952f to your computer and use it in GitHub Desktop.
Save thefoxis/60391fb8951634ea952f to your computer and use it in GitHub Desktop.
A simple front-end dev setup.
{
"scripts": {
"browsersync": "browser-sync start --server --port 8000 --files 'styl/*, *.html'",
"clean": "rm -rf css/main.css",
"css": "stylus -u autoprefixer-stylus -c styl --out css",
"minify": "cleancss -o css/main.min.css css/main.css",
"build": "npm run css && npm run minify && npm run clean",
"watch": "watch 'npm run build' styl"
},
"devDependencies": {
"autoprefixer-stylus": "latest",
"browser-sync": "latest",
"clean-css": "latest",
"watch": "latest"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment