This repo is a template for starting a new plugin.
JavaScript Java Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
template
tests
.gitignore
.npmignore
CONTRIBUTING.md
LICENSE
README.md
package.json

README.md

phonegap-plugin-template

This is a tool for generating new plugins for use in PhoneGap / Apache Cordova applications. Much of the work to start authoring a new plugin can be automated, so that is the goal of this tool.

How to use it

// install it ( from github for now )
npm install -g phonegap/phonegap-plugin-template

// use it
// Usage: phonegap-plugin-create DIRECTORY NAME
// DIRECTORY : relative or absolute path to create the plugin in
// Note: DIRECTORY will be created if it does not exist.
// NAME : a name for your plugin, ex. cordova-plugin-myplugin    

phonegap-plugin-create ~/MyNewPlugin MyNewPlugin

Use it as a module

npm install --save phonegap/phonegap-plugin-template

var templateLib = require('phonegap-plugin-template');

var result = templateLib.create(installPath,pluginName);