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
Post a Comment