You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mw...@apache.org on 2013/10/22 00:13:51 UTC
[09/14] docs commit: [CB-3825] reference myplugin.js from home page
when using plugman to test
[CB-3825] reference myplugin.js from home page when using plugman to test
Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/025bdbf4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/025bdbf4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/025bdbf4
Branch: refs/heads/master
Commit: 025bdbf40873e18ccf7fc6c199f38d6be4ca69b3
Parents: 1a226ad
Author: Mike Sierra <ms...@adobe.com>
Authored: Fri Oct 11 17:02:32 2013 -0400
Committer: Michael Brooks <mi...@michaelbrooks.ca>
Committed: Mon Oct 21 15:12:52 2013 -0700
----------------------------------------------------------------------
docs/en/edge/guide/hybrid/plugins/index.md | 25 ++++++++++++++++++-------
1 file changed, 18 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/025bdbf4/docs/en/edge/guide/hybrid/plugins/index.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/hybrid/plugins/index.md b/docs/en/edge/guide/hybrid/plugins/index.md
index 7660b84..84e8919 100644
--- a/docs/en/edge/guide/hybrid/plugins/index.md
+++ b/docs/en/edge/guide/hybrid/plugins/index.md
@@ -86,19 +86,30 @@ the platform-specific `config.xml` file to make the platform aware of
the additional code library. The `header-file` and `source-file` tags
specify the path to the library's component files.
-You can use the `plugman` utility to validate whether the plugin
-installs correctly for each platform. Install `plugman` with the
-following [node](http://nodejs.org/) command:
+## Validating a Plugin
- $ npm install -g plugman
+You can use the `plugman` utility to check whether the plugin installs
+correctly for each platform. Install `plugman` with the following
+[node](http://nodejs.org/) command:
+
+ $ npm install -g plugman
+
+You need an valid app source directory, such as the top-level `www`
+directory included in a default CLI-generated project as described in
+The Command-line Interface. Make sure the app's `index.html` home
+page reference the name of the plugin's JavaScript interface, as if it
+were in the same source directory:
+
+ <script src="myplugin.js"></script>
Then run a command such as the following to test whether iOS
-dependencies load, optionally using a default CLI-generated project as
-described in The Command-line Interface:
+dependencies load properly:
- $ plugman -platform ios /path/to/my/project/www /path/to/my/plugin
+ $ plugman -platform ios /path/to/my/project/www /path/to/my/plugin
For details on `plugman` options, see Using Plugman to Manage Plugins.
+For information on how to actually _debug_ plugins, see each
+platform's native interface listed at the bottom of this page.
## The JavaScript Interface