Browserify
As you have now experienced when creating a gulpfile and writing tasks, the way Node.js breaks code into modules is very clean and natural. With node.js we can assign an entire module to a variable using node.js' require()
function.
This pattern is actually based on a specification called CommonJS and it is a truly fantastic way to organize and modularize code. Browserify is a tool that was created to leverage that exact same specification so that you can write all of your JavaScript code that way. Not only will you be able to modularize your own project code, but you now have the ability to use modules from npm in your non-Node.js JavaScript. It's quite remarkable.
The goal of this task is to use Browserify so that we can write our JavaScript files using the CommonJS spec that Node.js uses to include and modularize various pieces of our application. Additionally, we will also be able to use many other Node.js modules in our projects on the client side without having to run them...