`--save` by default
Since most people would want to save a dependency to bower.json when doing bower install <package> I suggest we make --save the default and introduce a --no-save flag. The default will only have an effect if there is a bower.json.
:+1:
Upvote :+1:
:+1:
:+1:
Of course this is 2.x feature as it breaks api.
:+1:
:+1:
We could add a .bowerrc flag like save-by-default. Default to false now and flip to true for 2.x?
@wibblymat :+1:
+1
Would it possible to set this to --save to the <head> tag inside a given file? (index.html for example)
@gh-naylor no, that's a task for another tool.
:+1: To @wibblymat's proposal.
Flip to true for 2.x and then deprecate the .bowerrc option.
PRs welcome ;)
I disagree. The --save option is consistent with other package managers (e.g. npm). Probably this change will be confusing to users.
@ninjatronic, component for example is using --saveby default, and that's probably the intended behaviour in most cases, even though npm is not using it.
Yeah, I think this is a solid change and we should move in that direction. I don't care what other package managers do in this instance.
Composer saves packages by default, for the note.
Worth noting then that uninstall should then also be expected to remove entries from the bower.json file
:+1:
:+1: (always annoyed that other package managers don't do the same)