Skip to content

Commit 3594d3d

Browse files
authored
introduce-hooks-plugin (#1730)
1 parent b63b838 commit 3594d3d

File tree

37 files changed

+1683
-24
lines changed

37 files changed

+1683
-24
lines changed

.cursor/commands/add-plugin.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```bash
2+
npx @tauri-apps/cli plugin new NAME \
3+
--no-example \
4+
--directory ./plugins/NAME
5+
```
6+
7+
- Base on the instruction, decide `NAME`, and run the above command.
8+
- `plugins/analytics` is well maintained plugin, so follow its style & convention. This including removing `rollup.config.js` & `README.md`, and updating `tsconfig.json` & `package.json`.
9+
- If not specified, keep the single `ping` fn in `ext.rs`, and also in `commands.rs`.
10+
- After all code written, binding should be generated. `pnpm -F @hypr/plugin-<NAME> codegen`.
11+
- `Cargo.toml`, `apps/desktop/src-tauri/Cargo.toml`, `apps/desktop/package.json`, and `apps/desktop/src-tauri/capabilities/default.json` should be updated as final step.

0 commit comments

Comments
 (0)