-
Notifications
You must be signed in to change notification settings - Fork 49
Description
This may not be an ember-cli-coffeescript issue per se, but I really want to make ember-cli addons more compatible for users of this excellent addon.
Steps to reproduce:
ember g my-crafty-addon and npm install --save-dev ember-cli-coffeescript inside the addon.
So far so good. Begin coding away.
Create (for example) a component in the addon/components folder. (Manually since components can't be generated inside addons?).
Mirror this component in app/components and import/export as described here: http://edgycircle.com/blog/2014-creating-a-datepicker-ember-addon/ (a common practice for merging into the application namespace while still allowing further subclassing)
addon/components/my-component:
`import Ember from 'ember'`
MyComponent = Ember.Component.extend( ... )
`export default MyComponent`app/components/my-component:
`import MyComponent from 'my-crafty-component/components/my-component'`
`export default MyComponent`my-crafty-addon no longer functions! The importing app will complain about not be able to find my-crafty-addon/components/my-component
While the above steps work great for .js files, there seems to be a globbing issue that doesn't pick up .coffee files in the same configuration.
I believe this is an issue somewhat closer to the ember-cli core but I really would like to know what steps we can take to increase compatibility?