You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by dp...@apache.org on 2019/04/28 03:23:05 UTC
[cordova-docs] branch janpio-plugins updated: Testing a Plugin
during development (#975)
This is an automated email from the ASF dual-hosted git repository.
dpogue pushed a commit to branch janpio-plugins
in repository https://gitbox.apache.org/repos/asf/cordova-docs.git
The following commit(s) were added to refs/heads/janpio-plugins by this push:
new 43d381e Testing a Plugin during development (#975)
43d381e is described below
commit 43d381efca62df5ef028c976a440416b7b415c1c
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Sun Apr 28 05:23:00 2019 +0200
Testing a Plugin during development (#975)
---
www/docs/en/dev/guide/hybrid/plugins/index.md | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/www/docs/en/dev/guide/hybrid/plugins/index.md b/www/docs/en/dev/guide/hybrid/plugins/index.md
index 92e26e1..070b079 100644
--- a/www/docs/en/dev/guide/hybrid/plugins/index.md
+++ b/www/docs/en/dev/guide/hybrid/plugins/index.md
@@ -185,6 +185,18 @@ listed below, and each builds on the simple Echo Plugin example above:
- [iOS Plugins](../../platforms/ios/plugin.html)
- [Windows Plugins](../../platforms/windows/plugin.html)
+## Testing a Plugin during development
+
+The simplest way to manually test a plugin during development is to create a
+Cordova app as usual and add the plugin with the `--link` option:
+
+```bash
+cordova plugin add ../path/to/my/plugin/relative/to/project --link
+```
+
+This creates a symbolic link instead of copying the plugin files, which enables you
+to work on your plugin and then simply rebuild the app to use your changes.
+
## Validating a Plugin using Plugman
You can use the `plugman` utility to check whether the plugin installs
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org