Qafoo/build-commons — pull request #3 by jakobwesthoff (2012-05-11 12:21:12+00:00)
Title: RequireJS bootstrap and bundle support

I implemented requirejs extensions, for bootstrapping as well as bundling the project.

These targets allow *build-commons* to be used with requirejs ([AMD](https://github.com/amdjs/amdjs-api/wiki)) to manage the dependencies of JavaScript projects. If this system is utilized it will provide two different build integration steps:

### 1. Bootstrapping

The bootstrapping process creates one javascript file within the javascript source tree, which if sourced within the project will automatically resolve and load all needed dependencies on the fly. This is great for development. However it is not that great for deployment/packaging. This is were the bundling step comes into play.

### 2. Bundling

The bundling process uses `r.js` to statically trace all dependencies inside the javascript project, essentially building one big file including all needed libraries. This file replaces all javascript source files of the project, within the bundle directory (The one which is used for packaging). It will be placed and named exactly the same as the generated bootstrap file. Therefore html-templates, or any other application configuration does not need to be changed before packaging.

#### Note:

This branch does include the the *bundle step branch* requested to be merged by [PR 2](https://github.com/Qafoo/build-commons/pull/2)