What are the advantages of using Bower vs Git Submodules?
Since Bower just clones the repo locally and provides you with a link to the executable, I personally find that using submodules is simpler and does the job just as well.
Is there something I'm missing here, is there a very good reason for introducing Bower to your stack and repositories?
Here are a few reasons I can think of:
Most of these advantages are not specific for Bower but rather the advantages of using a package manager instead of doing it manually by yourself.
Because, it saves time. Say if you're jquery#X.X version and you want to install jquery#Y.X version, all you have to do is:
bower install jquery#Y.X
and then you can conveniently remove the older version of jquery by:
bower uninstall jquery#X.X
and it also allows you to clearly state dependencies in a bower.json
file.
It also makes it easier for one to find documentation and exact version of the dependency that your project requires. Usually with the traditional way you either forget the version or the source you downloaded the file from.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With