Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-4624

Allow apps to specify plugin dependencies within their config.xml

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • cordova-cli
    • 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"?

      Attachments

        Issue Links

          Activity

            People

              kamrik Mark Koudritsky
              agrieve Andrew Grieve
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: