This module manages the installed packages using Bower. Note that npm, git and bower must be installed for this module to be available.
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
List installed Bower packages.
env
format as the cmd.run
execution function.CLI Example:
salt '*' bower.list /path/to/project
New in version 2017.7.0.
Remove extraneous local Bower packages, i.e. those not referenced in bower.json
env
format as the cmd.run
execution function.CLI Example:
salt '*' bower.prune /path/to/project
Uninstall a Bower package.
env
format as the cmd.run
execution function.CLI Example:
salt '*' bower.uninstall underscore /path/to/project
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.bower.html