Skip to content

Conversation

@iezer
Copy link
Contributor

@iezer iezer commented Mar 31, 2017

@mixonic This adds a couple of things to the ember-resolver to support Module Unification:

  • (first commit) Looks up certain types like services and utils in two possible places, for example, for service:auth, check my-app/src/ui/services/auth and my-app/src/ui/services/auth/service

  • (second commit) Add tests for local lookup. This verifies that local lookup works as implemented in the @glimmer/resolver, provided that we (via ember) pass the correct value for referrer. These tests make explicit what we expect so that we can implement the right thing in Ember. Ember should pass the absolute specifier for the template, adding /-components at the end if it is coming from a route template. For example:

    • If looking from a route called posts: referrer: template:/app/routes/post/-components
    • If looking from a component called my-input: referrer: template:/app/components/my-input

iezer added 2 commits March 29, 2017 16:08
 For example, a service can exist in
 my-app/src/services/auth, or
 My-app/src/services/auth/service

Support locations
@mixonic
Copy link
Member

mixonic commented Jul 2, 2017

I think most/all of these concerns are handled elsewhere now 👏

@mixonic mixonic closed this Jul 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants