Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 902 Bytes

README.md

File metadata and controls

32 lines (19 loc) · 902 Bytes

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