id = "bower" name = "Bower" homepage = "https://bower.io/" description = "Package manager for the web" executables = ["bower"] [dotfiles] # https://bower.io/docs/config/ — Bower merges a .bowerrc in the user's home # directory after project files and before the global configuration. paths = ["~/.bowerrc"] secret = [] [commands] format = 1 label = "Install packages" description = "Install Bower packages into bower_components. Other subcommands and global options such as --loglevel are left out." quality = "ai-draft" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.subcommand]] path = ["install"] label = "Install" [[commands.subcommand.source]] id = "api" kind = "manual" url = "https://bower.io/docs/api/" evidence = """$ bower install [] $ bower install [ ..] [] -F, --force-latest: Force latest version on conflict -p, --production: Do not install project devDependencies -S, --save: Save installed packages into the project’s bower.json dependencies -D, --save-dev: Save installed packages into the project’s bower.json devDependencies -E, --save-exact: Configure installed packages with an exact version rather than semver -f, --force bower install --force re-installs all installed components.""" [[commands.subcommand.field]] id = "endpoints" label = "Packages" type = "string" position = 0 multiple = true min = 0 description = "Package endpoints; leave empty to install everything in bower.json." sources = ["api"] [[commands.subcommand.field]] id = "save" label = "Save to dependencies" type = "boolean" option = ["--save", "-S"] sources = ["api"] [[commands.subcommand.field]] id = "save_dev" label = "Save to devDependencies" type = "boolean" option = ["--save-dev", "-D"] sources = ["api"] [[commands.subcommand.field]] id = "save_exact" label = "Save exact version" type = "boolean" option = ["--save-exact", "-E"] sources = ["api"] [[commands.subcommand.field]] id = "production" label = "Skip devDependencies" type = "boolean" option = ["--production", "-p"] sources = ["api"] [[commands.subcommand.field]] id = "force_latest" label = "Force latest on conflict" type = "boolean" option = ["--force-latest", "-F"] sources = ["api"] [[commands.subcommand.field]] id = "force" label = "Force reinstall" type = "boolean" option = ["--force", "-f"] effect = "overwrite" sources = ["api"] [[commands.subcommand.task]] id = "add" label = "Add a package" fields = ["endpoints", "save"] required = ["endpoints"] set = { save = [true] } [[commands.subcommand.task]] id = "restore" label = "Install from bower.json" fields = ["production"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["endpoints", "save", "save_dev", "production"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["save_exact", "force_latest", "force"]