Monday 20 April 2015

Bower

What is bower ?

A very good explaining video about what is bower is here: https://egghead.io/lessons/bower-introduction-and-setup.

bower is a package manager to install JS packages, it also maintains dependency graph.

To install bower itself:
sudo apt-get install nodejs
sudo apt-get install npm
sudo npm install -g  bower

To install packages through bower: bower install jquery

to make your own bower.json: just load all packages at your end and just run bower init

This will ask some prompt, go through and that's it, your bower.json is prepared.

You can register your package on github through

bower register give_package_name 'your repository on github'


No comments:

Post a Comment