The addon's entry point, index.js
is key here.
The addon exposes several hooks during addon/app build-time, several of which are treeForX
where X is some part of the app/addon. In our case, depending on the addon type, we hook into one or more of theese hooks, at which point, we restructure and rename the files on the fly, so they're conventionally placed and named by the time the parent app tries to load them.
treeForApp
movescomponent.js
toapp/components/addonName.js
treeForTemplate
movestemplate.hbs
toapp/templates/components/addonName.hbs