Add the plugin SDK commands and rule to CLAUDE.md
This commit is contained in:
@@ -27,6 +27,8 @@ The [development guide](docs/development.md#architecture) maps the source folder
|
|||||||
| `pnpm smoke [filter...]` | Browser smoke tests (`tests/smoke/`). See [Browser smoke tests](docs/development.md#browser-smoke-tests). |
|
| `pnpm smoke [filter...]` | Browser smoke tests (`tests/smoke/`). See [Browser smoke tests](docs/development.md#browser-smoke-tests). |
|
||||||
| `pnpm build:installer --version <version>` | Windows installer. See [Builds](docs/builds.md). |
|
| `pnpm build:installer --version <version>` | Windows installer. See [Builds](docs/builds.md). |
|
||||||
| `pnpm package:plugin <compiled-folder> [output-folder]` | Plugin ZIP |
|
| `pnpm package:plugin <compiled-folder> [output-folder]` | Plugin ZIP |
|
||||||
|
| `pnpm sdk:build` | Build the plugin SDK in `packages/plugin-sdk/` |
|
||||||
|
| `pnpm release:sdk --version <version>` | Prepare an SDK release in the public SDK clone. It never pushes. See [SDK releases](docs/releases.md). |
|
||||||
|
|
||||||
A source edit needs the checks that cover it. A prose-only change needs only the lint and a link check.
|
A source edit needs the checks that cover it. A prose-only change needs only the lint and a link check.
|
||||||
|
|
||||||
@@ -89,6 +91,7 @@ Rules from the owner:
|
|||||||
## Plugin packages
|
## Plugin packages
|
||||||
|
|
||||||
- [docs/plugin-development.md](docs/plugin-development.md) is the package and API reference for all plugin work.
|
- [docs/plugin-development.md](docs/plugin-development.md) is the package and API reference for all plugin work.
|
||||||
|
- Plugins use only the SDK (`@runestone/plugin-sdk`, Apache-2.0), never direct `invoke` calls or host source files. The SDK source is `packages/plugin-sdk/`.
|
||||||
- Each plugin ships as one standard `.zip` with `plugin.json` at the archive root. Create it with `pnpm package:plugin`.
|
- Each plugin ships as one standard `.zip` with `plugin.json` at the archive root. Create it with `pnpm package:plugin`.
|
||||||
- Users install ZIPs through Settings → Plug-ins, from a local file or an experimental Gitea link.
|
- Users install ZIPs through Settings → Plug-ins, from a local file or an experimental Gitea link.
|
||||||
Do not add custom extensions, loose JSON installs, or folder installs.
|
Do not add custom extensions, loose JSON installs, or folder installs.
|
||||||
|
|||||||
Reference in New Issue
Block a user