+ All Categories

Bower

Date post: 26-Jul-2015
Category:
Upload: ricardo-bello
View: 56 times
Download: 3 times
Share this document with a friend
Popular Tags:
21
Transcript

A package manager for the web

An easy way to manage your Javascript and CSS dependencies

$ bundle install

$ bundle update <gem>

Gemfile

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

Installation

$ 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


Recommended