Bower - What is it, what is its usefulness and how to use it?

5

In project files and mainly front-end frameworks I have seen a lot, a lot even the bower.json file and I believe it is a file like composer.json , package.json , Gruntfile.js , README.md , then I would like to know:

  • What is Bower?
  • What is its usefulness?
  • How to use?
  • (Optional) What advantages can I gain by using it?
asked by anonymous 12.04.2016 / 05:05

1 answer

7

It is a package manager, ie it is used to install or uninstall packages. You can create a list of dependencies that will be used in your project in a .bowerrc file when installing in any environment, the dependencies will be automatically installed with the bower install command.

We can say that the function of the .bowerrc file in Bower, is the same as package.json in NPM. The main difference is that the bower is used to install dependencies that will be used in the client (like jquery, angular, bootstrap) while NPM handles server dependencies (grunt, mongodb, express). Also, Bower runs on server, so it can even be installed by NPM.

To learn how to install and use in practice, I recommend the official site . Good luck.

    
12.04.2016 / 10:44