Plugin Verify
Verify a cordova plugin quickly with its own test sample project.
How To Use
First, make sure cordova CLI is installed, if not yet, run:
npm install cordova -g
Now install the verify tool and use it to verify a cordova plugin:
npm install plugin-verify -g plugin-verify <plugin_id_or_path> [ios | android | ...]
Example:
plugin-verify cordova-plugin-admobpro ios plugin-verify nl.x-services.plugins.actionsheet android
How It Works
It creates a demo cordova project and copy the files under demo/ or test/ for testing purpose.
Here are the steps that the tool actualy runs:
# create a demo project cordova create ./tmp com.rjfun.demo Demo cd ./tmp # now add the plugin, cordova CLI will handle dependency automatically cordova plugin add <plugin_id_or_path> cordova platform add android cordova platform add ios # now remove the default www content, copy the demo html file to www rm -r www/*; cp -r plugins/<plugin_id>/test/* www/; # now build and run the demo in your device or emulator cordova emulate ios; cordova emulate android;
Credits
A simple tool created by Raymond Xie, to verify his lots of plugins.
Any comments are welcome.