This addon allows to create sub-applications with a different namespace of your ember-cli project.
ember install ember-cli-custom-addons
You can pass the follow options by setting them in
config/environment.js as follow:
path: addons path
exclude.addons: exclude addons from build
exclude.files: exclude addon files from build
customAddons:path: 'addons'exclude:files: 'foo/*.coffee'addons: 'foo'
addonsdirectory inside the project root
- Each folder inside
addonsdirectory will be merged with the
apptree in a different namespace
- Extend your application resolver to load your namespaces
dummy/- app/- components/- routes/- ...- addons/- foo- components/- routes/- ... (same as 'app')- bar- ...- public/- vendor/- ...
After build, inside
dist/assets/app.js, will be defined the addons modules and templates in their respectives namespaces:
If you want to contribute to this addon, please read the CONTRIBUTING.md.
See the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details