Skip to content

This repo is a template for starting a new plugin.

License

Notifications You must be signed in to change notification settings

phonegap/phonegap-plugin-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This repo is a template for starting a new plugin.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published