Github user stevengill commented on a diff in the pull request:

    https://github.com/apache/cordova-docs/pull/689#discussion_r114087974
  
    --- 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 [email protected] --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 [email protected]'** => 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.
    +  * **'cordova plugin add C:/path/to/console/plugin'** => retrieves the 
console plugin from the specified directory, adds it to the project, then 
updates config.xml and package.json and points to the directory.
     
     ### Mass saving plugins on an existing project
    -The '--save' flag described above is only useful when you remember to use 
it during the plugin addition.
    +
    --- End diff --
    
    remove the blank line


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to