A package manager for the web
An easy way to manage your Javascript and CSS dependencies
Gemfile
bower.json
$ bundle install
$ bundle update <gem>
$ bower install <dependency> —-save
$ bower update <dependency>
$ bower install ember
$ bower install http://domain.co/a.js
$ bower install git:github.com/emberjs/ember.js.git
$ bower install emberjs/ember.js
There are always alternatives
$ bower install bootstrap —-save
$ sudo apt-get install nodejs npm
$ brew install nodejs
$ [sudo] npm install -g bower
$ echo ‘bower_components’ >> .gitignore
$ bower init
$ bower install bootstrap —-save
$ bower install fontawesome —-save
Oh, font awesome just published a brand new set of icons!
Oh, font awesome just published a brand new set of icons!
$ bower update fontawesome
Hold on there, bud. How does rails know what files to require?
• Saves you time
• Painless way to update dependencies
• Semantic versioning
• No need to push third party js or css files to git
• Work offline