Bower
Bower is a package manager for client-side libraries and components that contain HTML, CSS, JavaScript, fonts, image files, and so on. You can install, locate, upgrade, and remove Bower packages without leaving WebStorm, on the dedicated Bower page or from the command line in the built-in terminal.
Install and enable the Bower plugin on the Settings | Plugins page, tab Marketplace, as described in Installing plugins from JetBrains Marketplace.
Make sure you have Node.js on your computer.
In the embedded Terminal (AltF12) , type:
npm install -g bower
In the embedded Terminal (AltF12) , type:
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.
Press CtrlAlt0S to open settings and then select Languages & Frameworks | JavaScript | Bower.
Specify the location of the Bower package and the bower.json configuration file.
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.
In the embedded Terminal (AltF12) , type one of the following commands:
bower install --save <package_name>
to install the package as a project dependency.bower install --save-dev <package_name>
to install the package as a development dependency.
Press CtrlAlt0S to open settings and then select Languages & Frameworks | JavaScript | Bower.
On the Bower page, 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.
tip
By default, packages are installed as project dependencies. To install a package as a development dependency, select the Options checkbox and type
--save-dev
.By default, Bower installs the latest version. Toget another one, select the Version checkbox and specify the required version.
To upgrade to the latest version of a package, select it in the list and click the Upgrade button ().
To uninstall a package, select it in the list and click the Remove button ().