Update cordova plugins in one command

前端 未结 14 791
故里飘歌
故里飘歌 2020-12-04 06:34

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

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

I know I can do this

14条回答
  •  广开言路
    2020-12-04 07:06

    you cannot update ,but i wrote a batch file that removes my plugins and install again so in this case my all plugins are updated automatically, hope this solves your problem

    @echo off
    for %%a in (
    "com.ionic.keyboard"
    "com.phonegap.plugins.PushPlugin"
    "cordova-instagram-plugin"
    "cordova-plugin-camera"
    "cordova-plugin-crosswalk-webview"
    "cordova-plugin-file"
    "cordova-plugin-file-transfer"
    
    ) do call cordova plugin rm %%a
    
    
    for %%b in (
    "com.ionic.keyboard"
    "com.phonegap.plugins.PushPlugin"
    "cordova-instagram-plugin"
    "cordova-plugin-camera"
    "cordova-plugin-crosswalk-webview"
    "cordova-plugin-file"
    "cordova-plugin-file-transfer"
    
    
    ) do call cordova plugin add %%b
    

提交回复
热议问题