Bower

Bower is a package manager for Javascript libraries that allows you to define, version, and retrieve your dependencies.

You should use bower to install all your frontend dependencies. The dependencies are saved to the bower_components folder. Also make sure to save the dependencies to the bower.json manifest file by adding the --save-dev or --save flag. Use the -dev postfix for the assets only needed under development.

This is very important since we ignore all frontend third party assets from git and install them at project setup.

Note: All project dependencies will be installed during the gulp setup command, which runs the command bower install.

Install: npm install -g bower Check bower version installed: bower -v

Install new dependency:

  • Navigate to the theme folder
  • Then run command bower install <package> --save-dev

A package can be a GitHub shorthand, a Git endpoint, a URL, and more. Read more about bower install.

# registered package
$ bower install jquery
# GitHub shorthand
$ bower install desandro/masonry
# Git endpoint
$ bower install git://github.com/user/package.git
# URL
$ bower install http://example.com/script.js

http://bower.io/

results matching ""

    No results matching ""