-
-
Notifications
You must be signed in to change notification settings - Fork 54
Replace ember-cli-test-loader
Bower with NPM dependency
#129
Replace ember-cli-test-loader
Bower with NPM dependency
#129
Conversation
I tend to like this approach better than ember-cli/ember-cli-qunit@115d56b ... @trentmwillis any comments? we should probably remove |
Yeah, that's true. We could check for/remove it after install. Since everyone in the Ember CLI space is using this or |
} else { | ||
return this._super.shouldIncludeChildAddon.apply(this, arguments); | ||
} | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexlafroscia can you explain why this hook is needed? it seems like the default implementation returns true
in all cases and this hook is mainly meant to filter addons out instead of explicitly including them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we don't need it? I'm not sure actually. Happy to remove it -- just wasn't sure what the right approach was and had seen it done like this in another add-on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it works fine without it then we should probably remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated my PR to remove this hook.
24fbde4
to
84c1728
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the typings file was supposed to end up here...
Ahh, yup. Accidentally committed those VS Code files, removed them but missed that one. Fixed it. |
84c1728
to
7dc5c9a
Compare
Finally got around to looking at this. The change makes sense to me, not even sure what I was thinking with the one from |
That's the idea! To be fair to you, I think that Once this lands, I'm going to figure out how to pull in A bonus perk of doing this is that, with the community migration away from Bower, this addon no longer requires it. I think it would be smart to eliminate it as a need from the high-profile addons like this one as much as possible. |
thanks everyone! :) |
Can we remove |
@alexlafroscia yeah, that would probably make sense. |
ember-cli-test-loader
bower dependencyember-cli-test-loader
Bower with NPM dependency
I tried this with a demo app, by
ember-cli-mocha
(this branch)ember-cli-test-loader
from thepackage.json
and reinstalling all the dependencies, so that the test loader must have come from theshouldIncludeChildAddon
hookember test
in the demo addonEverything works as you'd expect.
I did run into the problem that the tests for this repo are not passing after this change. For some reason,
requiredModules
doesn't includevalid.jshint
. Any idea why that might be?Closes #122