cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nikhilkh <...@git.apache.org>
Subject [GitHub] cordova-cli pull request: CB-10679: Documenting how the CLI choose...
Date Thu, 10 Mar 2016 23:20:34 GMT
Github user nikhilkh commented on a diff in the pull request:

    https://github.com/apache/cordova-cli/pull/241#discussion_r55766818
  
    --- Diff: doc/readme.md ---
    @@ -337,6 +337,18 @@ There are a number of ways to specify a plugin:
     | commit-ish  | Commit/tag/branch reference. If none is specified, 'master' is used
     | subdir      | Sub-directory to find plugin.xml for the specified plugin.
     
    +### Algorithm for choosing which plugin version to fetch from npm
    +
    +When adding a plugin to a project from npm, the CLI will choose which version
    +of the plugin to fetch based on the following criteria (listed in order of
    +precedence):
    +
    +1. The plugin version specified in the command (e.g. `cordova plugin add plugin@version`)
    +2. The plugin version saved in config.xml (i.e. if the plugin was previously added with
`--save`)
    +3. The latest plugin version that the current project can support (only applies to plugins
that list their [Cordova dependencies] in their `package.json`)
    +4. The plugin version pinned by your installed CLI version (only applies to [Apache-developed
plugins])
    --- End diff --
    
    This will likely need an update in a couple of days - when you remove plugin pinning.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message