Ember Stream Generator

This generator set is used to create an CJS require hierarchy for an EmberJS project structure.
The main use-case, is for use with Browserify.
For example, given the following structure:

app

|_controllers/

|_user.js

|_user/

|_new.js

|_views/

|_user.js

|_routes/

|_user.js

|_user/

|_new.js

|_...

This generator set can be used to generate a file, along the lines of .index.js, with the following contents:

// Start template code: Generated from template

require('ember');// get Ember global around for the templates

require('./.templates');

var routes =require('./config/routes');

var App =require('./config/application');

App.Router.map(routes);

// End template code

// Start generated code

App.UserController=require('./controllers/user');

App.UserNewController=require('./controllers/user/new');

App.UserView=require('./views/user');

App.UserRoute=require('./routes/user');

App.UserNewRoute=require('./routes/user/new');

// more ...

Note: The config directory is required, with the application definition in config/application.js and the router definition in config/routes.js. This also requires a .templates.js file in the root directory (this is a precompiled templates file, see ember-template-compiler).