a-kw8g
Last Updated: March 03, 2016
·
796
· steveniseki
Stevenm

bower commands

Bower is a package manager, which makes it easy to manage all of your application’s front-end dependencies

Installing Bower

npm install -g bower

Finding Packages

bower search
bower search backbone

Installing Packages

bower install backbone
bower install http://backbonejs.org/backbone-min.js

Updating packages

bower update

Uninstalling Packages

bower uninstall backbone

List the bower packages currently installed

bower list

Show versions of a package

bower info backbone

Remove cached packages

bower cache-clean

Installing packages using a bower.json file

// this bower.json file is used to define a Bower package

{
  "name": "app-name",
  "version": "0.0.1",
  "dependencies": {
    "sass-bootstrap": "~3.0.0",
    "modernizr": "~2.6.2",
    "jquery": "~1.10.2"
  },
  "private": true
}

Utility for creating a bower.json file for your project.

bower init
Say Thanks
Respond