0.0.6 • Published 12 years ago

plugman-registry v0.0.6

Weekly downloads
8
License
-
Repository
github
Last release
12 years ago

plugman-registry

This package uses npm and npmjs.org to manage PhoneGap/Cordova plugins.

Available commands

adduser

Create a new user on the npm based PhoneGap/Cordova registry

publish

Publish a new PhoneGap/Cordova plugin to the npm based PhoneGap/Cordova registry

unpublish

Unpublish a new PhoneGap/Cordova plugin to the npm based PhoneGap/Cordova registry

search

search for a PhoneGap/Cordova plugin in the npm based PhoneGap/Cordova registry

Example

  var registry = require('plugman-registry')
  
  /*
   * Will prompt for user information
   */
  registry.use('http://registry_url', function() {
    registry.adduser(args, function(err) {
      if(err) return handleError(err);
      console.log('User successfully added!');
    });
  });

  
  /*
   * publish a plugin to the registry 
   */
  registry.use('http://registry_url', function() {
    registry.publish([path_to_cordova_plugin], function(err) {
      if(err) return handleError(err);
      console.log('Plugin successfully published');
    });
  });
  
  /*
   * unpublish a plugin from a registry 
   */
  registry.use('http://registry_url', function() {
    registry.unpublish([cordova_plugin_name], function(err) {
      if(err) return handleError(err);
      console.log('Plugin successfully unpublished');
    });
  });
  
  /*
   * search for a plugin in the registry 
   */
  registry.use('http://registry_url', function() {
    registry.search([cordova_plugin_name], function(err, result) {
      if(err) return handleError(err);
      console.log('found', result);
    });
  });

Set up a new registry

Follow these steps to set a registry up locally Make sure you set secure_rewrites to false in your couchdb configuration.

0.0.6

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago