-
Notifications
You must be signed in to change notification settings - Fork 39
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
Move dependency checking to included hook #23
Conversation
@stefanpenner Can I get some feedback? This pr moves |
} | ||
|
||
EmberCLIDependencyChecker.prototype.included = function(/*app*/) { | ||
this.checkDependencies(); |
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.
the included hook currently gets called twice, do to a quirk that isn't fixed yet. We may want to guard.
cc @rwjblue should confirm
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.
It is called twice, but there is a guard to prevent double warnings (because the constructor setup would have had the same problem).
ember-cli-dependency-checker/lib/dependency-checker.js
Lines 24 to 26 in 96b9b2a
if(alreadyChecked) { | |
return; | |
} |
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.
👍
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.
soon we will fix that double invocation crap
cool, sounds good. We also plan to extract bower into an addon and hopefully deprecate, but this will allow us to have fine grain control of the dep checker |
Move dependency checking to included hook
This means that we get no dependency check unless the command being run is for a build. That was the reason to put it into the constructor initially. |
So for example: ember generate awesome-thing-that-I-am-missing-from-an-addon Will not error if the |
@rwjblue hmm I see. What do you suggest? |
ah, my bad. @rwjblue is correct. |
Another hook maybe for this kind of addons? |
@quaertym - So the idea is that we don't want to do it in the constructor because there are limited ways to provide configuration to it that way? I think that we just need a better config story, and I am working on an RFC for it. For now you can have the config put into |
@rwjblue Great, this fixes the configuration.
Is this possible with the config solution? Can certain commands overwrite config? |
No description provided.