Monday, March 28, 2016

Cordova Magic Commands

I was inspired by the following tweet:

conjure = cordova create $1 $2 $3 ; cd $1
summon = cordova platform add $1
banish = cordova platform rm $1
enchant = cordova plugin add $1
curse = cordova plugin rm $1
mix = cordova build $1
cast = cordova run $1
spells = cordova platforms ; cordova plugins

You can see the commands in action in this terminal session recording:

To create my own set of magic commands for Cordova. You can grab the additions I put into my .bash_profile file from this gist.
There is no real good reason for this other than I giggle to myself everytime I enchant or curse a plugin.