BBVAEngineering / ember-cli-custom-addons

Build sub-applications inside an ember-cli project
MIT License
3 stars 0 forks source link

Extending the application resolver #1

Closed martin-hoger closed 8 years ago

martin-hoger commented 8 years ago

Hi there,

first of all, thank you for the plugin. Unfortunately I have problems to resolve the files from the addon directory. In my dist/assets/app.js I see correctly included: define('dummy/components/foo', ['exports'....

The default resolver would not look in the addons directory, so I need to extend it, right? Can you give me a hint/help how to do that?

Thank you very much!

josex2r commented 8 years ago

Hi Martin.

Currently, the ember resolver only import modules with a namespace matching the property modulePrefix defined when instancing the resolver (config/environment.js).

You have to extend the methods that use the namespace to match all ocurrences (custom-addons directories names).

We will try to publish our resolver asap :)

martin-hoger commented 8 years ago

Thank you very much for the fast response. I will try extend it but I am not sure if it is not too high level for an Ember newbie.

josex2r commented 8 years ago

Try using this addon:

https://github.com/BBVAEngineering/ember-cli-awesome-resolver