ember.js - ember-cli: split application into separate directories -


my ember application has few distinct components. there lot of code, want sources organized separate directories.

let's have directory structure:

[app]   - [controllers]   - [models]   - [routes]   - [views] [dashboard]   - [controllers]   - [models]   - [routes]   - [views] [admin]   - [controllers]   - [models]   - [routes]   - [views] 

i want these directories merged app @ build-time. don't need support conflicting names, e.g. app/controllers/foo.js + dashboard/controllers/foo.js.

my goal basic level of organization. don't want prefix /dashboard/ on app, , don't want slow down build.

similar question: multiple "apps" ember-cli understand ember-cli folks working on , it's not ready yet.

any other ideas on how organize app more welcome.


i tried this, files in dashboard being ignored.

// brocfile.js var mergetrees = require('broccoli-merge-trees');  var app = new emberapp(); var dashboard = new emberapp({     trees: {         app: 'dashboard'     } });  module.exports = mergetrees([ dashboard.totree(), app.totree() ], { overwrite: true }); 


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -