[ https://issues.apache.org/jira/browse/CB-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13801578#comment-13801578 ]
Axel Nennker commented on CB-4624: ---------------------------------- Michal Mocny suggested on the dev mailing list: "Maybe we do just go the npm style route. cordova plugin add (without ID) -> reads deps from config and installs them. cordova plugin add --save-deps ID -> adds plugin and adds to config cordova plugin add --save-deps (without ID)-> takes installed plugins and adds to deps " I am not sure whether www/config.xml should ever be touched by cli commands. Let us start with the first suggestion "cordova plugin add (without ID)". > Allow apps to specify plugin dependencies within their config.xml > ----------------------------------------------------------------- > > Key: CB-4624 > URL: https://issues.apache.org/jira/browse/CB-4624 > Project: Apache Cordova > Issue Type: New Feature > Components: CLI > Reporter: Andrew Grieve > Assignee: Mark Koudritsky > > 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"? -- This message was sent by Atlassian JIRA (v6.1#6144)