Skip to content

Instantly share code, notes, and snippets.

@mockra
Created December 19, 2013 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mockra/8034261 to your computer and use it in GitHub Desktop.
Save mockra/8034261 to your computer and use it in GitHub Desktop.
window.App = Ember.Application.create();
require('store');
require('router');
var folderOrder = [ 'routes', 'models', 'views', 'controllers', 'helpers',
'templates', 'components' ];
folderOrder.forEach(function(folder) {
window.require.list().filter(function(module) {
return new RegExp("^" + folder + "/").test(module);
}).forEach(function(module) {
require(module);
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment