在一个命令中更新cordova插件 [英] Update cordova plugins in one command
本文介绍了在一个命令中更新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 */
如果没有官方的方式,有没有其他帮助?