Skip to content
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

[Bugfix] this.pickFiles did not exist on addon #1892

Merged
merged 1 commit into from
Sep 5, 2014
Merged

Conversation

stefanpenner
Copy link
Contributor

No description provided.

@@ -212,7 +212,7 @@ Addon.prototype.jshinting = function() {
};

Addon.prototype.addonJsFiles = function(tree) {
var files = pickFiles(tree, {
var files = this.pickFiles(tree, {
srcDir: '/',
Copy link
Member

Choose a reason for hiding this comment

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

May need to call this._requireBuildPackages() method here first.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

isn't it in the constructor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah its not, should it be in the constructor instead?

Copy link
Member

Choose a reason for hiding this comment

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

If it were in the constructor we would pay the initialize hit even when the addon does nothin build related.

Copy link
Member

Choose a reason for hiding this comment

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

Also would not allow using ember-cli to build ember either (due to es6ify issue indicated in the original issue).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

where do we eagerly instantiate the add-on?

  1. i'll split the up as you recommended.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated.

rwjblue added a commit that referenced this pull request Sep 5, 2014
[Bugfix] this.pickFiles did not exist on addon
@rwjblue rwjblue merged commit 805a50b into master Sep 5, 2014
@rwjblue rwjblue deleted the pick-files-fix branch September 5, 2014 23:44
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.

None yet

3 participants