Thursday, April 16, 2015

Stop download javascript and css libs - use Bower

Bower


Bower is a package manager for the web, that requires Node and Git.
It allows quick and easy install of all dependencies at once and provides an opportunity for sharing those dependencies with others.

So, instead of loading third party libraries manually in zip,
u can describe dependencies on those ones and their versions into the bower.json file.

Installing & Using


Bower is quite straightforward:

Install Bower:
$ npm install -g bower
Go to your project folder and install Package via install [package] command:
bower install jquery
U can use GitHub shorthand, a Git endpoint or a URL for the package.

Share dependencies:
You don't need to keep all those libraries in your repository,
just put your bower.json file under version control and that's it.

see Also

Top JavaScript Frameworks 2015


1 comment:

  1. Anyway, npm stays the most commonly used package manager for JavaScript

    ReplyDelete