This module manages the installed packages using Bower. Note that npm, git and bower must be installed for this module to be available.
salt.modules.bower.
install
(pkg, dir, pkgs=None, runas=None, env=None)¶Install a Bower package.
If no package is specified, the dependencies (from bower.json) of the package in the given directory will be installed.
pkg
parameterenv
format as the cmd.run
execution
function.CLI Example:
salt '*' bower.install underscore /path/to/project
salt '*' bower.install jquery#2.0 /path/to/project
salt.modules.bower.
list
(dir, runas=None, env=None)¶List installed Bower packages.
env
format as the cmd.run
execution
function.CLI Example:
salt '*' bower.list /path/to/project
salt.modules.bower.
uninstall
(pkg, dir, runas=None, env=None)¶Uninstall a Bower package.
env
format as the cmd.run
execution
function.CLI Example:
salt '*' bower.uninstall underscore /path/to/project