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
add --dev install option for devDependencies, cleaned up #251
Conversation
Ref #80 add install --dev test
I think we should follow What you guys actually think of this behaviour? |
Some context https://github.com/isaacs/npm/issues/2799
I feel the use case for bower is a bit different. If you're installing stuff, you just want to get it. I feel like the more frequent use case is that you just want the stuff, you're not looking to build documentation or run tests. See also https://github.com/isaacs/npm/issues/2369 where there's several responses against installing devDependencies by default. npm works in the opposite fashion, allowing you to pass a |
@desandro Please note that dev dependencies of dependencies would not be installed. Only the project dev dependencies would. I suggested this only to keep consistency with Still, I see your point and I'm not totally against it. |
Lets see what others think. |
I like how |
It took me a while, but I finally get what you're saying. Yes, it makes sense to add devDependencies by default on the project level. So that when you clone a repo, then run Okay, I think we're in agreement. :) |
@desandro we need to add a test that asserts that dev dependencies of dependencies are not fetched. |
add help text
Nice work @desandro 🍰 |
It would be nice to have also an additional 'devDirectory' config option in I know this breaks with the way |
Cleaned up PR for #246 ... all for #80
You can now do
bower install --dev
orbower install -d
and bower will add packages fromdevDependencies
from your project's JSON.Has basic test. It's fairly simple, extending
manager.json.dependencies
withmanager.json.devDependencies
This does not solve for resolving endpoint devDependencies, i.e.