Keep your code piping hot! Rebuild your client side code on change without binaries
There are already wrappers such as brunch that offer to watch and rebuild all your client side files, and optionally launch a server for you. I wanted to launch my server and have it watch my client files and rebuild them (as well as itself, see piping)
Piping-browser uses browserify to package up your client side modules using commonjs. Browserify also gives us sourcemaps and support for node modules for free!
npm install piping-browser
Piping-browser is not a binary, so you can continue using your current workflow for running your application ("wooo!"). Basic usage is as follows:
Piping-browser can also be used just by passing two strings. In this case, the strings are taken as the main and out options
piping-browser plays nice with piping. To use it, ensure piping-browser is required when piping returns false:
if!require"piping"require"piping-browser""./client/scripts/main.js""./public/application.js"return// application logic here