Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-plugin

Options:

  • --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.md

build [dir]

Builds the plugin project into dist/plugin.js.

yolnoma-plugin-dev build
# or specify project directory
yolnoma-plugin-dev build ./my-plugin

install [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-plugin

uninstall [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-plugin

Development Workflow

  1. Create a plugin:
    yolnoma-plugin-dev create my-plugin
  2. Navigate into the directory:
    cd my-plugin
  3. Install dependencies:
    npm install
  4. Build the plugin bundle:
    yolnoma-plugin-dev build
  5. Install into Yolnoma:
    yolnoma-plugin-dev install
  6. Uninstall from Yolnoma when needed:
    yolnoma-plugin-dev uninstall

License

MIT — JK Software

Releases

Packages

Contributors

Languages