@garoon/plugin-packer
v1.2.2
Published
Package your Garoon plugin
Downloads
631
Maintainers
Keywords
Readme
garoon-plugin-packer
plugin-packer for Garoon plugins.
It's written in pure JavaScript, so
- The CLI works with Node.js in Mac/Windows/Linux
- Validate your manifest.json with JSON Schema
How to install
$ npm install -g @garoon/plugin-packer
Usage: CLI
$ garoon-plugin-packer [OPTIONS] PLUGIN_DIR
Options
--out PLUGIN_FILE
: The path of generated plugin file. The default isplugin.zip
in the same directory of PLUGIN_DIR.
How to use with npm run
The plugin directory is ./plugin, edit package.json:
{
"scripts": {
"package": "garoon-plugin-packer plugin"
}
}
and then
$ npm run package
Usage: Node.js API
const { packer } = require("@garoon/plugin-packer");
packer("./pluginDir");
Licence
MIT License