-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
NPM scenario support #26
Conversation
I'm still just poking around with the code for now, so it's probably not worth reviewing yet :) |
2b11072
to
671a154
Compare
This now works for a bunch of cases that I have tested. Just cleaning stuff up at this point, and potentially logging some more information out so people can feel confident that their scenario is being set up as they expect. |
|
||
module.exports = { | ||
|
||
_npmFoldersToClearForScenario: function (scenario) { |
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.
NOTE TO SELF: Needs a nice comment
Ok this works now, and is ready for review @kategengler @rwjblue |
@@ -21,7 +22,10 @@ module.exports = CoreObject.extend({ | |||
//create a fake promise for consistency | |||
promise = RSVP.Promise.resolve(); | |||
} else { | |||
promise = BowerHelpers.cleanup(task.project.root); | |||
promise = RSVP.all([ |
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 can't comment on the exact line because github won't let me, but above there's a backupBowerFile
call that might need to be accompanied by a backupNpmFile
?
Found a few cases where there are still problems, and I should be able to address them within the next day or two |
Hey @mike-north, whats the status on this? |
Got sidetracked on something else. Not sure when I'll be able to pick this back up, but it needs some more love before merge |
👍 This would be very helpful. Ember 1.13 loads helper automatically, but 1.12 needs another add-on to do this. |
This would be a great feature to have merged, is there any way I can help to get this one merged? |
it proved to be quite a bit more complicated than I initially thought (I On Mon, Dec 21, 2015 at 12:54 AM Marten [email protected] wrote:
|
I've been working on npm support, but with a very different approach. |
Closing in favor of #45 |
This may be quick and dirty at first, but I have a need to test
1.13.x >= ember >= 1.7.x
, so I'm going to take a stab at it. Let's also let this be a place to start a discussion for "the proper approach" to adding NPM support.Commands
No changes should be needed to the
ember try*
commands, although their internals will have to be enhancedConfiguration -
config/ember-try.js
Thoughts
node_modules
so that it's easy to put back when we want toember try:reset
node_modules
folder away if we don't have toember-try
its self being innode_modules
.package.json
. The current way thatbower.json
is handled supports only adding.bower.json
file tobower.json.ember-try
. This should apply equally well topackage.json