You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/05/01 00:02:04 UTC
[jira] [Commented] (CB-12591) Update cordova docs for cordova@7
release
[ https://issues.apache.org/jira/browse/CB-12591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15990520#comment-15990520 ]
ASF GitHub Bot commented on CB-12591:
-------------------------------------
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
> Update cordova docs for cordova@7 release
> -----------------------------------------
>
> Key: CB-12591
> URL: https://issues.apache.org/jira/browse/CB-12591
> Project: Apache Cordova
> Issue Type: Task
> Components: cordova-cli, cordova-docs
> Affects Versions: cordova7
> Reporter: Audrey So
> Labels: cordova7
> Fix For: cordova7
>
>
> Update cordova docs for cordova@7 release. Create a new section for the config command. Also, include information about new features including, autosave and autofetch work and package.json.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org