ff0000/red-boilerplate — pull request #8 by timrwood (2012-08-14 22:35:52+00:00)
Title: Removing dependancy on grunt-requirejs as it does not support multitasks

Instead of using the `grunt-requirejs` npm package, use this much smaller grunt task from https://github.com/gruntjs/grunt-contrib

This allows you to do stuff like the following to build a desktop and mobile site.

```javascript
function makeOptions(name) {
return {
mainConfigFile: "project/static/js/config." + name + ".js",
include: ["config." + name + ".js"],
paths: {
"jquery": "empty:"
},
optimize: "uglify",
out : "project/static/js/site." + name + ".min.js",
name: "fratnetwork/site"
};
}

grunt.config.set("requirejs", {
desktop: {
options: makeOptions('desktop')
},
mobile: {
options: makeOptions('mobile')
}
});
```