yolnoma-plugin-dev
v0.2.1
Published
Official developer CLI and build tool for Yolnoma plugins
Maintainers
Readme
yolnoma-plugin-dev
Official developer CLI and build tool for Yolnoma plugins.
Overview
yolnoma-plugin-dev helps developers bootstrap and build plugins for the Yolnoma desktop application.
Installation
# Global
npm install -g yolnoma-plugin-dev
# Or use with npx
npx yolnoma-plugin-dev create <plugin-name>Commands
create <name>
Scaffolds a complete starter plugin project.
yolnoma-plugin-dev create hello-pluginOptions:
--id <id>: Custom reverse-DNS identifier (default:com.example.<name>)--author <author>: Author name--desc <description>: Plugin description
Generated Project Structure
hello-plugin/
├── src/
│ ├── index.tsx ← Plugin entry point using definePlugin()
│ └── pages/
│ └── HomePage.tsx ← React UI component
├── package.json
├── tsconfig.json
├── tsup.config.ts ← Pre-configured ES module bundler
├── yolnoma.config.ts ← Plugin configuration
├── .gitignore
└── README.mdbuild [dir]
Builds the plugin project into dist/plugin.js.
yolnoma-plugin-dev build
# or specify project directory
yolnoma-plugin-dev build ./my-plugininstall [dir]
Builds the plugin and automatically installs dist/plugin.js to the Yolnoma AppData plugins directory (%LOCALAPPDATA%\Yolnoma\plugins\<plugin-id>\plugin.js).
yolnoma-plugin-dev install
# or specify project directory
yolnoma-plugin-dev install ./my-pluginuninstall [dir]
Uninstalls the plugin by removing its directory from the Yolnoma AppData plugins directory (%LOCALAPPDATA%\Yolnoma\plugins\<plugin-id>\).
yolnoma-plugin-dev uninstall
# or specify project directory
yolnoma-plugin-dev uninstall ./my-pluginDevelopment Workflow
- Create a plugin:
yolnoma-plugin-dev create my-plugin - Navigate into the directory:
cd my-plugin - Install dependencies:
npm install - Build the plugin bundle:
yolnoma-plugin-dev build - Install into Yolnoma:
yolnoma-plugin-dev install - Uninstall from Yolnoma when needed:
yolnoma-plugin-dev uninstall
License
MIT — JK Software
