Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/floatinghotpot/plugin-verify
- Owner: floatinghotpot
- Created: 2015-06-04T09:43:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-13T15:28:49.000Z (about 7 years ago)
- Last Synced: 2024-10-05T11:08:11.825Z (3 months ago)
- Topics: cordova, cordova-plugin, plugin
- Language: JavaScript
- Size: 3.91 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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 -gplugin-verify [ios | android | ...]
```Example:
```bashplugin-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 addcordova 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.