npm.io
0.1.12 • Published 3 years ago

ember-simple-mu-resolver

Licence
MIT
Version
0.1.12
Deps
3
Size
18 kB
Vulns
0
Weekly
0

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

Use addon service

@service('myaddon@myservice')

initializers in init folder

in app.js add

loadInitializers(App, config.modulePrefix + '/init');
styles in ui folder
new EmberApp({
    trees: {
      styles: 'app/ui/styles'
    },
   ...
index.html in ui folder

add the following to ember-cli-build.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.

Keywords