Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/floatinghotpot/plugin-verify

A simple utility to verify a Cordova plugin with its own test sample index.html
https://github.com/floatinghotpot/plugin-verify

cordova cordova-plugin plugin

Last synced: 3 months ago
JSON representation

A simple utility to verify a Cordova plugin with its own test sample index.html

Awesome Lists containing this project

README

        

# 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:
```bash
npm install cordova -g
```

Now install the verify tool and use it to verify a cordova plugin:
```bash
npm install plugin-verify -g

plugin-verify [ios | android | ...]
```

Example:
```bash

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:

```bash
# 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

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//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.