Installing and configuring Bower
To install Bower
npm install -g bower
To create bower.json
- cd <your project folder> bower init
Answer the questions to specify the following basic settings:
The testing framework to use.
The browsers to be captured automatically.
The patterns that define the location of test files to be involved in testing or excluded from it.
Learn more from the Bower official website.
To configure Bower in WebStorm
Managing Bower packages
Bower installs packages only as project dependencies or development dependencies, learn more from the Bower official website. You can manage Bower packages on the Bower page or in the Terminal tool window.
To install a package in the Terminal
To handle packages on the Bower page
On the Bower page that opens, the Packages area shows all the Bower packages that are currently installed in your project.
To install a package, click , and in the Available Packages dialog that opens, select the required package and click Install Package.
To upgrade to the latest version of a package, select it in the list and click .
To uninstall a package, select it in the list and click .