https://github.com/patricklx/ember-simple-mu-resolver
https://github.com/patricklx/ember-simple-mu-resolver
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/patricklx/ember-simple-mu-resolver
- Owner: patricklx
- License: mit
- Created: 2020-09-09T14:39:40.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-11-07T09:40:53.000Z (almost 2 years ago)
- Last Synced: 2024-10-09T12:45:33.482Z (about 1 year ago)
- Language: JavaScript
- Size: 394 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
ember-simple-mu-resolver
==============================================================================
Ember Simple Module Unification Resolver
this does not resolve local components and helpers, instead this should
to be used together with [ember-hbs-imports](https://github.com/patricklx/ember-hbs-imports)
### Use addon service
```js
@service('myaddon@myservice')
```
### initializers in init folder
in `app.js` add
```js
loadInitializers(App, config.modulePrefix + '/init');
```
### styles in ui folder
```js
new EmberApp({
trees: {
styles: 'app/ui/styles'
},
...
```
### index.html in ui folder
add the following to `ember-cli-build.js`
```js
const tree = new Funnel('app/ui', {
allowEmtpy: true,
include: ['index.html'],
destDir: app.name,
annotation: 'ui to index.html'
});
const toArray = app.toArray;
app.toArray = function () {
const arr = toArray.call(this);
arr.push(tree);
return arr;
};
```
Installation
------------------------------------------------------------------------------
```
ember install ember-simple-mu-resolver
```
Usage
------------------------------------------------------------------------------
This will automatically setup the resolver
License
------------------------------------------------------------------------------
This project is licensed under the [MIT License](LICENSE.md).