使用 Bower 更新多个依赖项 [英] Update multiple dependencies with Bower
本文介绍了使用 Bower 更新多个依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 bower.json
文件和/或
凉亭安装 https://github.com/username/project.git
效果很好.
现在我可以列出所有这些
凉亭列表
然后我可以选择项目的每个依赖项的名称并运行
bower 更新依赖名
<块引用>
问题:如何批量更新所有这些?还是我必须编写一个 shell 脚本来循环并更新它们?
解决方案
运行bower update
即可全部更新.
在任何命令上使用 -h
标志来查看如何使用它.例如 bower update -h
.
I listed (and/or installed) several dependencies with Bower inside the bower.json
file and/or with
bower install https://github.com/username/project.git
That worked fine.
Now I can list all them with
bower list
and then I can pick the name of each dependency of my project and run
bower update dependency-name
Question: How can I bulk update all of them? Or do I have to write a shell script to loop through and update them?
解决方案
You can update all by running bower update
.
Use the -h
flag on any command to see how you can use it. Eg bower update -h
.
这篇关于使用 Bower 更新多个依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文