Bower 是一款前端包管理器,目前还在维护中,但推荐使用npm和yarn的生态。
官方通告:
…psst! While Bower is maintained, we recommend using Yarn and Webpack for front-end projects read how to migrate!
项目中常用npm和bower配合使用,bower主要是管理前端包,而npm的生态更好,应用更广.
命令
执行 $ bower 命令弹出如下的信息
Usage:
bower <command> [<args>] [<options>]
Commands:
cache Manage bower cache
help Display help information about Bower
home Opens a package homepage into your favorite browser
info Info of a particular package
init Interactively create a bower.json file
install Install a package locally
link Symlink a package folder
list List local packages - and possible updates
login Authenticate with GitHub and store credentials
lookup Look up a single package URL by name
prune Removes local extraneous packages
register Register a package
search Search for packages by name
update Update a local package
uninstall Remove a local package
unregister Remove a package from the registry
version Bump a package version
Options:
-f, --force Makes various commands more forceful
-j, --json Output consumable JSON
-l, --loglevel What level of logs to report
-o, --offline Do not hit the network
-q, --quiet Only output important information
-s, --silent Do not output anything, besides errors
-V, --verbose Makes output more verbose
--allow-root Allows running commands as root
-v, --version Output Bower version
--no-color Disable colors
See 'bower help <command>' for more information on a specific command.
相关链接和翻译
| cache | Manage bower cache【bower缓存管理】 |
| help | Display help information about Bower【显示bower命令帮助信息】 |
| home | Opens a package homepage into your favorite browser【通过浏览器打开一个包的github发布页】 |
| info | Info of a particular package【查看包的信息】 |
| init | Interactively create a bower.json file【创建bower.json文件】 |
| install | Install a package locally【安装包到项目】 |
| link | Symlink a package folder【在本地bower库建立一个项目链接】 |
| list | List local packages - and possible updates【列出项目已安装的包】 |
| login | Authenticate with GitHub and store credentials【GitHub授权登录并存储凭证】 |
| lookup | Look up a single package URL by name【根据包名查询包的url】 |
| prune | Removes local extraneous packages【删除项目无关的包】 |
| register | Register a package【注册一个包】 |
| search | Search for packages by name【搜索包】 |
| update | Update a local package【更新项目的包】 |
| uninstall | Remove a local package【删除项目的包】 |
| unregister | Remove a package from the registry【注销一个包】 |
| version | Bump a package version【修改包的版本并写入bower.json】 |
345



被折叠的 条评论
为什么被折叠?



