===========
A boilerplate for the development source tree and production build process of a RequireJS driven Backbone application.
For convenience Backplate ships with Backbone, underscore, jQuery, RequireJS, r.js, almond, text.js and pre-configured RequireJS.
[docyes@len backplate]$ firefox src/index.html?debug=1
[docyes@len backplate]$ ./build.sh
Tracing dependencies for: main
Tracing dependencies for: common
Uglifying file: /Users/docyes/Code/backplate/build/js/common.js
Uglifying file: /Users/docyes/Code/backplate/build/js/contrib/require.js
Uglifying file: /Users/docyes/Code/backplate/build/js/main.js
Uglifying file: /Users/docyes/Code/backplate/build/js/require.config.js
js/main.js
----------------
js/main.js
js/common.js
----------------
js/contrib/almond.js
js/contrib/text.js
js/contrib/underscore.js
js/contrib/jquery.js
js/contrib/backbone.js
js/views/Base.js
js/models/Base.js
js/collections/Base.js
js/routers/Base.js
[docyes@len backplate]$ firefox build/index.html
Executes the r.js optimizer using Node with build.js as the master build profile. See lib/r.js
The master production build profile; see build.sh and src/js/require.config.js.
Shared libraries.
An adapter to run AMD based projects in Node or Rhino. Includes the RequireJS Optimizer that combines scripts for optimal browser delivery. See https://github.com/jrburke/r.js/
Project source tree.
Browser production and development runtime; production only runs in the build/ directory and development in the src/ directory. See build.sh
JavaScript source tree.
Program main initializer. Starts Backbone.history and initializes Base router.
Shared RequireJS configuration used by both development and production variants. See src/debug.html and build.js
Base scaffold class extending Backbone.View
Base scaffold (empty) class extending Backbone.Model
Base scaffold (empty) class extending Backbone.Collection
Base scaffold (empty) class extending Backbone.Router
Base scaffold (empty) mixin as the Backbone.Model and Backbone.Collection do not inherit from the same Base class.
Third-party packages.
A file and module loader for JavaScript. See https://github.com/jrburke/requirejs
A minimal AMD API implementation for use after optimized builds. See https://github.com/jrburke/almond
An AMD loader plugin for loading text resources. See https://github.com/requirejs/text
JavaScript's utility _ belt.See https://github.com/jashkenas/underscore
jQuery JavaScript Library. See https://github.com/jquery/jquery
Give your JS App some Backbone with Models, Views, Collections, and Events. See https://github.com/jashkenas/backbone