0.5.2 • Published 8 years ago

plugin-verify v0.5.2

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

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.

0.5.2

8 years ago

0.5.1

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago