walmartlabs/generator-thorax — pull request #39 by trombom (2013-10-29 04:46:22+00:00)
Title: use almond/requirejs in production(#13, #4)

- output build to dist directory
- index.html references main.js and style.css only
- main.js is wrapped with almond

- build pipeline temporarily sends compiled templates and js source
to tmpjs directory where r.js optimizer builds from, this pipeline is
strictly for production builds, dev builds remain as they were

- lots of refactoring to DRY up Gruntfile duplication that occurred
during while building this feature. Bottom of Gruntfile.js contains
helper methods to help with this