For Virtual Domain Manager <=v1.0.0
-
Create the
package.json
file usenpm init
, or copy and modifty an exiting file.{ "name": "", // (required) your plugin name, both '-' and '_' allowed "version": "", // (required) version number, e.g., "1.0.0" "description": "", // (required) describe how this plugin support what application "keywords": [], // (required) keywords for indexing "author": "", // (optional) author name "license": "GPL-3.0", // license claim "main": "", // (required) entry file for the plugin, e.g., "main.js" "capability": [], // (optional) VDM Capability depdency claim "scripts": {}, // (optional) now only "pre-install" and "test" are supported "homepage": "", // (optional) homepage url for the plugin "repository": {}, // (optional) repository address for the plugin "bugs": {} // (optional) bug report address for the plugin }
-
Write your plugin with
SRC
API implemented (onTrigger
is not used now) -
Archive your plugin with ".zip" format, and install it via pyvdm.
zip -r ../plugin.zip ./ pyvdm plugin install ../plugin.zip
-
Test your plugin functionality via pyvdm, or via your test script in
scripts
sectionpyvdm plugin run <your_plugin_name> <onStart/onStop/onClose> npm test
-
(Optional) Use Github Action to make your plugin available on release page, and submit to the offical
VDM Plugin Market
via PR.The
VDM Plugin Market
has not been built up yet.