Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Use-case: Be able to have plugins/ and platforms/ in your .gitignore
Be able to specify what plugins an app depends on within config.xml. The list should be updated whenever you perform a "cordova plugin add", just like "npm install --save" does for node. If no commit is specified, then the latest is downloaded and the hash is extracted & saved into the config.xml.
The syntax should match that of <dependency> tags within the plugin spec:
http://cordova.apache.org/docs/en/3.0.0/plugin_ref_spec.md.html#Plugin%20Specification. Note that there's an open issue to fold the commit/subdir into the URI (CB-4622).
We'll need a new command for installing dependencies. Maybe:
"cordova install"?
"cordova plugin install"?
"cordova project init"?