Skip to content

Instantly share code, notes, and snippets.

@arjunattam
Last active January 6, 2017 05:59
Show Gist options
  • Save arjunattam/07080bc93bc95c53e661f41c072c8852 to your computer and use it in GitHub Desktop.
Save arjunattam/07080bc93bc95c53e661f41c072c8852 to your computer and use it in GitHub Desktop.
Snippets for building a cordova plugin
HyperTrackWrapper
|-- src
| |-- android
| | |--HyperTrackWrapper.java
| |
| |-- ios
| | |--HyperTrackWrapper.m
|
|-- www
| |-- HyperTrackWrapper.js
|
|-- plugin.xml
|-- package.json
# Install plugman
$ npm install -g plugman
# Create a plugin
$ plugman create --name HyperTrackWrapper --plugin_id cordova-plugin-hypertrack --plugin_version 0.1.0
# Setup platforms
$ cd HyperTrackWrapper
$ plugman platform add --platform_name ios
$ plugman platform add --platform_name android
# Create a package.json file for npm
$ plugman createpackagejson .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment