-
Notifications
You must be signed in to change notification settings - Fork 3k
install: Add support for --development, installing devDependencies only #9024
Conversation
Thanks for doing this! I closed #4791 in favor of this PR. My objections to the name of the flag have nothing to do with its fitness for purpose (I think naming the flags Given that If you want to put together a patch that resolves #6200, you'd be pretty much guaranteeing this PR's path to landing. The CLI team will get to it eventually if you don't, but we have a lot of high-priority things contending for our attention right now, so it might take us a little while. |
I'm kind of fond of So I'd favor landing this as But regardless, I think this needs a few more things before we can land it:
|
Sure, I'm happy to proceed and do a
I think the way I'd like to go about it is:
How does that sound? |
I like @iarna's case for using a switch that's less overloaded, so yes, let's call that a consensus. That also has the nice side effect of decoupling the deprecation of That said, I agree with @iarna that it would be really good to see the changes to
This sounds good, but I think maybe deprecating
With the caveat that preserving
Yes, please! Thanks for picking this up, @bengl! |
OK cool, switched it over to More clarification questions, about specific non-
|
I like the idea of
Why not have both? |
I like |
OK, I went through and added I only put the deprecation warning for
So I think that's it and this is ready. The only failing test on the non-0.8 travis builds appears to be unrelated to my changes. If I've missed something, or you'd like me to squash commits or something, I'm happy to fix. |
Hey Ben, @iarna is going to take a look at this and we're going to try to get it in shape to land in next week's |
I'm not Ben, I'm Bryan 😄 (no worries, common mistake!). Excellent news on potentially having it in [email protected]! Backporting it to npm@2 would require a different implementation (likely using @davglass's patch), but could probably re-use much of the same config, doc and test changes. If I find some spare time over the next week or so I'll give it a shot. |
Sorry, Bryan! I know who you are! I believe in you! I also believe you exist because I've met you! This is what I get for trying to bang out that comment quickly in the middle of a meeting, while also thinking about my esteemed colleague Ben!
My actual question is: is this worth the effort? I.e. how long is your esteemed employer going to take to upgrade to |
Haha, again, no worries. My username makes it far too easy. From my esteemed employer's perspective, I don't think we're too concerned with |
👍 only for |
Hey! Good news! This is out and live in 3.3.0! |
🎉 thanks! |
I'm reading through this thread and now I'm fairly confused. I don't think this is the right place to put a discussion of how to build/deploy node projects though, so can someone point me to a discussion or a best practices? I'm trying to automate pushing a node library to a local npm via a CI server. Thought that:
Would do the trick. Should I just be doing npm install instead? But that will install a lot of stuff I don't need to actually run/build the npm module... about 15 deps that are unrelated to the actual building/testing of the module. Suggestions? (currently using npm 2.11.3, node 0.12.7) |
This is a re-do of #4791 for
v3.x
.The intention here is to have a CLI flag that complements
--production
. We have several use cases for this, including switching between registries for both sets of dependencies. A test similar to the one for--production
is included.The discussion on #4791 seemed to be all about the naming of the flag, so here are some alternatives, in case
--development
isn't acceptable:--not-production
--only=[production,development]