Skip to content

Make ember-load-initializers an addon #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 3, 2016

Conversation

josemarluedke
Copy link
Contributor

Hello there.

This is an attempt to migrate to addon. Not sure if everything is in the best way to do things, but I'm looking for some feedbacks and I will fix it. In my tests, it works fine with changes required in ember-cli (PR coming as well).

Helps with ember-cli/ember-cli#4546.

@rwjblue
Copy link
Member

rwjblue commented Feb 3, 2016

This looks good! Thanks for working on it!

Can you add a shim for the old module ('ember/load-initializers')? The ember-resolver addon did something similar for reference (vendor file + app.import I think).

name: 'ember-load-initializers',

included: function() {
this._super(...arguments);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This executes in Node, where we may not have spread arguments.

I'd suggest using this._super.apply(this, arguments); instead.

@josemarluedke
Copy link
Contributor Author

@rwjblue Just added the shims. We should be good now.

rwjblue added a commit that referenced this pull request Feb 3, 2016
Make ember-load-initializers an addon
@rwjblue rwjblue merged commit cf5c8b9 into ember-cli:master Feb 3, 2016
@rwjblue
Copy link
Member

rwjblue commented Feb 3, 2016

Thank you @josemarluedke!!!

@josemarluedke josemarluedke deleted the addonfy branch February 3, 2016 04:00
@rwjblue
Copy link
Member

rwjblue commented Feb 3, 2016

% npm publish
+ [email protected]
% npm owner add stefanpenner
+ stefanpenner (ember-load-initializers)

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