Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Getting Started

To get started we’re going to install Grunt-BBB, which will include Backbone Boilerplate and any third-party dependencies it might need such as the Grunt build tool.

We can install Grunt-BBB via npm by running:

npm install -g bbb

That’s it. We should now be good to go.

Here’s a typical workflow for using Grunt-BBB, which we will use later:

  1. Initialize a new project (bbb init).

  2. Add new modules and templates (bbb init:module).

  3. Preview changes using the built-in server (bbb server.)

  4. Run the build tool (bbb build).

  5. Link JavaScript, compile templates, build your application using r.js, and minify CSS and JavaScript (using bbb release).


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint