Skip to main content

add-plugin

Scaffold a new Tauri plugin in this repository when asked to add or create a plugin under `plugins/`. Use this for plugin generation and repository integration work, not for editing an existing plugin unless the request is specifically about bringing a freshly generated plugin in line with project conventions.

Informações da origem

Repositório
fastrepl/anarlog
Última atividade na origem
29 de julho de 2026 às 06:38
Idioma detectado do SKILL.md
inglês
Estrelas
9.474
Forks
791

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
add-plugin
description
Scaffold a new Tauri plugin in this repository when asked to add or create a plugin under `plugins/`. Use this for plugin generation and repository integration work, not for editing an existing plugin unless the request is specifically about bringing a freshly generated plugin in line with project conventions.
metadata
{"internal":true}
Create a new plugin with: ```bash npx @tauri-apps/cli plugin new NAME \ --no-example \ --directory ./plugins/NAME ``` Decide `NAME` from the user request, then run the generator. Follow the style and conventions used in `plugins/analytics`: - remove generated `rollup.config.js` - remove generated `README.md` - update `tsconfig.json` - update `package.json` If the user does not ask for different command behavior, keep the single `ping` function in both `ext.rs` and `commands.rs`. After the code changes are in place, generate bindings: ```bash pnpm -F @anlg/plugin-<NAME> codegen ``` Finish by updating these integration points: - `Cargo.toml` - `apps/desktop/src-tauri/Cargo.toml` - `apps/desktop/package.json` - `apps/desktop/src-tauri/capabilities/default.json` Run `pnpm i` after updating `apps/desktop/package.json`.
Ver no GitHub