Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lorealm-plugin-cli

Create, build and release Lorealm plugins.

cargo install lorealm-plugin-cli

Commands

Command What it does
lorealm-plugin new Asks a few questions and creates a plugin: its manifest, a Rust backend on the lorealm-plugin SDK, a frontend slot, settings and a LICENSE if you want them, and a release workflow for GitHub.
lorealm-plugin doctor Checks that what plugins are built with is installed. --fix installs what it can.
lorealm-plugin build Runs the manifest's [build] commands.
lorealm-plugin check Builds the plugin and checks a release of it would install.
lorealm-plugin package Builds the plugin and zips what a release ships into dist, printing the zip's sha256.
lorealm-plugin stage 0.2.0 Sets the version in manifest.toml and Cargo.toml, commits that and tags it v0.2.0. Nothing is pushed. It refuses when there are uncommitted changes.
lorealm-plugin publish Pushes the branch and the staged tag. The release workflow then builds the plugin and attaches the zip to a GitHub release.

new takes its answers as options too, for scripts: lorealm-plugin new --yes --name "Word Count" --hook after-generate --slot message --license mit. With --yes and no --license, no LICENSE is written.

A frontend slot is plain HTML unless you pick TypeScript (--frontend typescript). Then it's written against @lorealm/plugin, so IDEs complete the lorealm API, and Vite bundles it into the one HTML file a slot has to be. That needs Node, and doctor checks for it in such a plugin.

What a release holds

One zip with manifest.toml at its top and the files it points at: the backend, the frontend when the plugin has slots, the README and the settings. A Lorealm server installs it as it is, without building anything.

Legal Notice

Files generated by lorealm-plugin new may be used without restriction or attribution.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages