cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cordova Wiki] Update of "PluginDiscovery" by AnisKadri
Date Thu, 14 Feb 2013 00:39:27 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cordova Wiki" for change notification.

The "PluginDiscovery" page has been changed by AnisKadri:
http://wiki.apache.org/cordova/PluginDiscovery?action=diff&rev1=1&rev2=2

  = Plugin Discovery =
  
- Cordova plugins can be discovered via a tool called plugman. Plugman is used by [[cordova-cli|CommandLineToolingDesign]].
+ Cordova plugins can be discovered via a tool called Plugman. Plugman is used by [[CommandLineToolingDesign|cordova-cli]].
  
  In order to discover plugins, we need to store plugin information/metadata on a remote source.
The plugman tool can query that remote source to:
- - list all plugins
+  * list all plugins
- - query about a specific plugin
+  * query about a specific plugin
- - publish/unpublish/update plugins (future)
+  * publish/unpublish/update plugins (future)
  
  plugman needs to be properly configured in order to query the remote source. The configuration
file is stored in its ''config/remote.js'' and has the following format:
  
@@ -21, +21 @@

  
  Read on if you're interested in finding out how to create your own plugin information source.
  
- == Where are plugins stored ? ===
+ === Where are plugins stored ? ===
  
  Plugins are currently stored in Git repositories. Adapters can be written to support different
formats (zip, tar.gz etc...). At this time, only Git repositories are supported. The plugin
remote source references those Git repositories.
  
@@ -131, +131 @@

  
  === Fields ===
  
- ''total_rows'': number of plugins returned
+  * ''total_rows'': number of plugins returned
- ''rows'': Array of plugin objects
+  * ''rows'': Array of plugin objects
  
  Each plugin object has a key field and a value field. The key field (String) is the name
of the plugin. The value field (Object) contains information/metadata about the plugin. The
value object fields are pretty self explanatory.
  
@@ -169, +169 @@

  
  Discussion/Future:
  
- - Response format: The format above is just a proposal and works well with the current version
of plugman. It is open for discussion. The important point is that the remote does not have
to host plugins, only reference them.
+  * Response format: The format above is just a proposal and works well with the current
version of plugman. It is open for discussion. The important point is that the remote does
not have to host plugins, only reference them.
- - Naming: what should plugins be named ? What happens when two plugins do the same thing
and want the same name ?
+  * Naming: what should plugins be named ? What happens when two plugins do the same thing
and want the same name ?
- - Versioning: Needs support for versions (of plugins as well as cordova).
+  * Versioning: Needs support for versions (of plugins as well as cordova).
- - Needs support for dependencies
+  * Dependencies: Needs support for it
  

Mime
View raw message