Last active
January 6, 2017 05:59
-
-
Save arjunattam/07080bc93bc95c53e661f41c072c8852 to your computer and use it in GitHub Desktop.
Snippets for building a cordova plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HyperTrackWrapper | |
|-- src | |
| |-- android | |
| | |--HyperTrackWrapper.java | |
| | | |
| |-- ios | |
| | |--HyperTrackWrapper.m | |
| | |
|-- www | |
| |-- HyperTrackWrapper.js | |
| | |
|-- plugin.xml | |
|-- package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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