使用Bower更新多个依赖项

使用Bower更新多个依赖项

问题描述:

我列出了(和/或安装了)bower.json文件中Bower和/或

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

那很好.

现在我可以列出所有这些

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

问题:如何批量更新所有这些内容?还是我必须编写一个Shell脚本来循环并更新它们?

Question: How can I bulk update all of them? Or do I have to write a shell script to loop through and update them?

您可以通过运行bower update进行全部更新.

You can update all by running bower update.

在任何命令上使用-h标志可以查看如何使用它.例如bower update -h.

Use the -h flag on any command to see how you can use it. Eg bower update -h.