Had enough of Grunt and Gulp because they're difficult to configure and especially difficult to debug.
After a discussion with some BrisJS peers last month I've come up with a bunch of NPM scripts to do a bunch of common browserify+uglify+misc stuff. This is based around my own workflow and doesn't cover all the bases so ymmv, but it's been working for me for a while now so I figured I'd share.
First you need to ensure you've got your tools installed:
npm install -g browserify uglify-js beefy
- Run the commands from startup-repo.sh
- Add the "scripts" section to your package.json
- Run
npm watch
to get started.
The watch task uses the node watch
module for platform agnosticism, and runs a
beefy
server so you don't get out-of-date Browserify builds on load, and have
the option of livereloading.
Use this however you want. If you have a suggestion, chuck it in the comments.