cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stevengill <...@git.apache.org>
Subject [GitHub] cordova-docs pull request #689: CB-12591 : Updating cordova docs to reflect ...
Date Mon, 01 May 2017 00:01:52 GMT
Github user stevengill commented on a diff in the pull request:

    https://github.com/apache/cordova-docs/pull/689#discussion_r114087966
  
    --- Diff: www/docs/en/dev/platform_plugin_versioning_ref/index.md ---
    @@ -127,16 +162,27 @@ After running the above command, the resulting config.xml looks
like :
     </xml>
     ```
     
    +After running the above command, the resulting package.json looks like :
    +
    +```bash
    +"cordova": {"plugins": ["cordova-plugin-console",]},"dependencies": {"cordova-plugin-console":
"~1.0.0",}
    +```
    +
    +The '--nosave' flag prevents adding and deleting specified plugins from config.xml and
package.json. To prevent saving a plugin, you issue the following command :
    +
    +```bash
    +$ cordova plugin add <plugin[@<version>] | directory | git_url> --nosave
    +```
     
     Some examples :
     
    -  * **'cordova plugin add cordova-plugin-console --save'** => retrieves the pinned
version of the console plugin, adds it to the project and then updates config.xml.
    -  * **'cordova plugin add cordova-plugin-console@0.2.13 --save'** => retrieves the
android plugin, version 0.2.13 from npm, adds it to the project and then updates config.xml.
    -  * **'cordova plugin add https://github.com/apache/cordova-plugin-console.git --save'**
=> clones the specified console plugin git repository, adds the console plugin to the project,
then updates config.xml and point its version to the specified git-url.
    -  * **'cordova plugin add C:/path/to/console/plugin --save'** => retrieves the console
plugin from the specified directory, adds it to the project, then updates config.xml and point
to the directory.
    +  * **'cordova plugin add cordova-plugin-console'** => retrieves the pinned version
of the console plugin, adds it to the project and then updates config.xml and package.json.
    +  * **'cordova plugin add cordova-plugin-console@0.2.13'** => retrieves the android
plugin, version 0.2.13 from npm, adds it to the project and then updates config.xml and package.json.
    +  * **'cordova plugin add https://github.com/apache/cordova-plugin-console.git'** =>
clones the specified console plugin git repository, adds the console plugin to the project,
then updates config.xml and and package.json and points its version to the specified git-url.
    --- End diff --
    
    instead of clones specified console plugin git repo, lets say npm installs specified console
plugin git repo


---
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