{"id":21553190,"url":"https://github.com/bbvaengineering/ember-cli-custom-addons","last_synced_at":"2025-04-10T07:50:12.215Z","repository":{"id":44849919,"uuid":"48752900","full_name":"BBVAEngineering/ember-cli-custom-addons","owner":"BBVAEngineering","description":"Build sub-applications inside an ember-cli project","archived":false,"fork":false,"pushed_at":"2022-12-07T12:19:41.000Z","size":7546,"stargazers_count":3,"open_issues_count":44,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-03T16:02:22.468Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BBVAEngineering.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-29T15:10:02.000Z","updated_at":"2020-04-15T09:20:51.000Z","dependencies_parsed_at":"2023-01-24T17:01:00.571Z","dependency_job_id":null,"html_url":"https://github.com/BBVAEngineering/ember-cli-custom-addons","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BBVAEngineering%2Fember-cli-custom-addons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BBVAEngineering%2Fember-cli-custom-addons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BBVAEngineering%2Fember-cli-custom-addons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BBVAEngineering%2Fember-cli-custom-addons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BBVAEngineering","download_url":"https://codeload.github.com/BBVAEngineering/ember-cli-custom-addons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248182010,"owners_count":21060891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T07:09:46.308Z","updated_at":"2025-04-10T07:50:12.197Z","avatar_url":"https://github.com/BBVAEngineering.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-cli-custom-addons\n\n[![Build Status](https://travis-ci.org/BBVAEngineering/ember-cli-custom-addons.svg?branch=master)](https://travis-ci.org/BBVAEngineering/ember-cli-custom-addons)\n[![GitHub version](https://badge.fury.io/gh/BBVAEngineering%2Fember-cli-custom-addons.svg)](https://badge.fury.io/gh/BBVAEngineering%2Fember-cli-custom-addons)\n[![NPM version](https://badge.fury.io/js/ember-cli-custom-addons.svg)](https://badge.fury.io/js/ember-cli-custom-addons)\n[![Dependency Status](https://david-dm.org/BBVAEngineering/ember-cli-custom-addons.svg)](https://david-dm.org/BBVAEngineering/ember-cli-custom-addons)\n[![codecov](https://codecov.io/gh/BBVAEngineering/ember-cli-custom-addons/branch/master/graph/badge.svg)](https://codecov.io/gh/BBVAEngineering/ember-cli-custom-addons)\n[![Greenkeeper badge](https://badges.greenkeeper.io/BBVAEngineering/ember-cli-custom-addons.svg)](https://greenkeeper.io/)\n[![Ember Observer Score](https://emberobserver.com/badges/ember-cli-custom-addons.svg)](https://emberobserver.com/addons/ember-cli-custom-addons)\n\n## Information\n\n[![NPM](https://nodei.co/npm/ember-cli-custom-addons.png?downloads=true\u0026downloadRank=true)](https://nodei.co/npm/ember-cli-custom-addons/)\n\nThis addon allows to create sub-applications with a different namespace of your ember-cli project.\n\n## Installation\n\n* `ember install ember-cli-custom-addons`\n\n## Options\n\nYou can pass the follow options by setting them in `config/environment.js` as follow:\n\n* `path`: addons path\n* `exclude.addons`: exclude addons from build\n* `exclude.files`: exclude addon files from build\n\n```javascript\ncustomAddons: {\n    path: 'addons',\n    exclude: {\n        files: ['foo/*.coffee'],\n        addons: ['foo']\n    }\n},\n```\n\n## Usage\n\n* Create `addons` directory inside the project root\n* Each folder inside `addons` directory will be merged with the `app` tree in a different namespace\n* Extend your application resolver to load your namespaces\n\n## Example\n\n```html\ndummy/\n  - app/\n    - components/\n    - routes/\n    - ...\n  - addons/\n    - foo\n      - components/\n      - routes/\n      - ... (same as 'app')\n    - bar\n      - ...\n  - public/\n  - vendor/\n  - ...\n```\n\nAfter build, inside `dist/assets/app.js`, will be defined the addons modules and templates in their respectives namespaces:\n\n```js\n// App\ndefine('dummy/app', ['exports', 'ember', ...\ndefine('dummy/components/foo', ['exports', 'ember', ...\n// Addons\ndefine('foo/components/foo', ['exports', 'ember', ...\ndefine('foo/routes/bar', ['exports', 'ember', ...\ndefine('bar/pods/index', ['exports', 'ember', ...\n```\n\n## Contribute\n\nIf you want to contribute to this addon, please read the [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/BBVAEngineering/ember-cli-custom-addons/tags).\n\n## Authors\n\nSee the list of [contributors](https://github.com/BBVAEngineering/ember-cli-custom-addons/graphs/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbvaengineering%2Fember-cli-custom-addons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbvaengineering%2Fember-cli-custom-addons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbvaengineering%2Fember-cli-custom-addons/lists"}