-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[ENHANCEMENT] Prevent addon generation in existing ember-cli project #3433
[ENHANCEMENT] Prevent addon generation in existing ember-cli project #3433
Conversation
Can you implement |
@cbrock - Any updates? |
@rwjblue I should have time this week to pick this back up and address your comment. I appreciate the feedback - thanks! |
@rwjblue I could use a little guidance on your previous comment. My interpretation is that by implementing I apologize for my ignorance, but I'm happy to implement the change if you're able to help me understand a bit better. |
@rwjblue I'd love to have another go at this. Any chance you could provide some clarification, per my comment above? |
From the context of a blueprint instance, the normalizeEntityName: function() {
if (this.project.isEmberCLIProject()) {
throw new SilentError('You cannot run the addon blueprint from within an `ember-cli` project.');
}
} Then, we need to test the blueprints |
0b768ca
to
2bc210a
Compare
@rwjblue Thanks for pointing me in the right direction. One thing to note, without actually returning Because of that, I added a Again, thanks for the clarification! |
2bc210a
to
40d53ab
Compare
40d53ab
to
715a4e4
Compare
@rwjblue r? |
AWESOME, thank you @cbrock! |
[ENHANCEMENT] Prevent addon generation in existing ember-cli project
This fixes #3411.
This commit prevents addon generation if the current project is an existing ember-cli project.
Any thoughts or feedback are welcome.