Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imhotep/plugman-registry
cordova-plugman registry
https://github.com/imhotep/plugman-registry
Last synced: 27 days ago
JSON representation
cordova-plugman registry
- Host: GitHub
- URL: https://github.com/imhotep/plugman-registry
- Owner: imhotep
- Created: 2013-05-25T00:34:48.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-19T21:30:45.000Z (over 11 years ago)
- Last Synced: 2024-11-27T20:11:48.623Z (about 1 month ago)
- Language: JavaScript
- Size: 101 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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
-------```javascript
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](https://github.com/isaacs/npmjs.org) to set a registry up locally
Make sure you set `secure_rewrites` to `false` in your couchdb configuration.