O'Reilly logo

Full Stack Web Development with Backbone.js by Patrick Mulder

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Automated Workflows

As your application grows and you start working in a team with multiple developers, questions on workflow, coding style and testing become important. Tools to organize workflows help to apply conventions and bring applications to the next level.

In this chapter, we enter the world of Yeoman. Based on the ideas of build automation, this chapter shows how a Yeoman generator can provide you with standard steps to develop Backbone application modules.

Bundled with Yeoman generators, there often comes a setup that favors the RequireJS module format over CommonJS modules. While CommonJS and Browserify are interesting when the JavaScript application must be loaded up front, RequireJS has its benefits if you are building a web application where parts of the experience should be loaded asynchronously as needed.

At the end of this chapter, our goal is to have the movie application running on the Node toolchains. This includes:

  • Bower - or how to fetch Backbone dependencies such as plugins
  • Yeoman and a Backbone generator, this helps at scaffolding project structures
  • Using RequireJS for development
  • Using a build with RequireJS project

Improving Productivity

In the previous chapters, you incrementally have built a web application “by hand”. This means, that you did run commands from the command-line to create files and directories, inserted repeating code by hand and maybe applied a watchmode of different tools to help starting the development environment.

If you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required