Creating a development workflow

In this section, we will build a script to help us in the development process and, later, to build a production-ready script. You will need to install the basic dependencies first:

$ npm install --save-dev gulp gulp-load-plugins gulp-util

The gulp-load-plugins is useful to automatically load all the available plugins without manually requiring them in the gulpfile.js script; the gulp-util plugin provides utility functions such as log messages.

Bundling the JavaScript files with Browserify

The gulp-browserify plugin is currently deprecated and should not be used. The project author recommends using one of the recipes developed by the Gulp development team.

The recipes described in the repository needs to install some ...

Get Mastering Backbone.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.