A quick hack to update all the Cordova plugins used in a Cordova project. Next hack will be updating all Cordova platforms…
From the Cordova project run the following (unix shell required):
cordova plugins | grep -Eo '^[^ ]+' | while read line do echo "cordova plugin remove $line" echo "cordova plugin add $line" done
So something like cordova plugin update $name doesnt exists? so we really need to remove them first?
To the best of my knowledge, that is the only way – but Cordova has made quite a few releases and improvements since I wrote this entry so they might have improved this as well.
Pingback: EeKay's Blog | Lightning Tip #2: Renew all your project’s #cordova plugins at once
Nice idea… But since some plugins might be dependent on 1 other (e.g. cordova-plugin-media-capture and cordova-plugin-compat), you might not be able to remove the ones that other’re dependent on.