在一个命令中更新cordova插件 [英] Update cordova plugins in one command

查看:605
本文介绍了在一个命令中更新cordova插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道有没有更简单的方法更新cordova插件?

I am wondering is there an easier way to update cordova plugin?

我googled,发现了一个钩子(2013年),但这不是100%我想要。

I googled, found a hook (@ year 2013), but this is not 100% what I want.

我知道我可以通过两个步骤:rm,然后添加
,但我正在寻找一个更好的哪些插件有更新的版本?我可以在一个命令中更新所有的。 (如:npm update)

I know I can do this by two steps: rm, then add but I am looking for a better (official) way to help me which plugins have newer version? and I can update ALL of them in one command. (just like: npm update)

例如:

$ cordova plugin list
/* list all installed plugins, their dependencies, and newer versions */

$ cordova plugin update
/* update all of them for me */

如果没有官方的方式,有没有其他帮助?

我厌倦了手动检查插件更新,所以创建了一个工具来为我做这件事:

if there is no official way, is there some other helper? yo?

推荐答案

https://github.com/dpa99c/cordova-check-plugins\">https://github.com/dpa99c/cordova-check-plugins

I got tired of manually checking for plugin updates so created a tool to do it for me: https://github.com/dpa99c/cordova-check-plugins

全球安装:

$ npm install -g cordova-check-plugins

然后从您的Cordova项目的根目录运行。您可以选择以交互方式或自动更新过期的插件,例如

Then run from the root of your Cordova project. You can optionally update outdated plugins interactively or automatically, e.g.

$ cordova-check-plugins --update=auto

这篇关于在一个命令中更新cordova插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆