backbone-boilerplate/backbone-boilerplate — pull request #221 by SBoudrias (2013-06-19 18:45:18+00:00)
Title: Update requirejs grunt task config.

I find that this way of building with Rjs is less error prompt as we'll walk dependencies automatically from the `main` module without any need for us to included some manually inside the `include` option.

Also, using wrap, we can add some extra configs so that when using the builded files (if served from a different directory) we can still require excluded modules - that's mostly a safety net so the builded file will run in the same context as the development app.

In the wrap, we also use a higher default timeout for modules so we're sure slow connection won't fail because it didn't have the time in 7sec (the default) to load a dependencies. 30sec for a production app seems more reasonable (may even be better if higher).