The company I’m working for is building an emberjs app, which constitutes of different modules. We’re using Ember CLI to handle the project structure and build (at least for now).
For the modules, I mean very different pieces of functionality, not just some separation of data. Also, I want to add that these models have table names in common, but different data, so that’s one reason we needed to separate things. We will want to load these modules as required, so the app size gets reduced.
For the namespacing, we used an approach where we create a folder following the module name for controllers, models, adapters, views etc…
So the structure ended up like this:
You get the point.
This is working fine for us, although we had to customise and tweak a lot of ember things for this to work properly, we wanted to know if there’s an easier way to modularize an Ember app, using ember cli or not.
This is not something the guides and this very site talk about, but for some large projects, this becomes essential.
One solution we discussed as well was to have multiple ember apps. We decided to not do that on this moment because of some common data, so having one app would simplify, but the namespacing into folders brought its own issues we had to solve, like serializers, adapters, controller names, dependencies, etc.
Do you guys have any experience doing something like this? If yes, could you share what was the approach of doing so? Was the approach we took somewhat against the ember way?
Thanks in advance,