This repo is a template for starting a new plugin.
JavaScript Java Objective-C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src exit safely Jan 9, 2017
template
tests test actual export, like the docs say Jan 9, 2017
.gitignore Checks params Apr 18, 2016
.npmignore Checks params Apr 18, 2016
CONTRIBUTING.md Renamed to phonegap-plugin-template Apr 18, 2016
LICENSE
README.md
package.json Add some tests Jan 7, 2017

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);