English | 简体中文
- ⚡️ Tuff plugin template with a runnable dev UI (Vite + Vue).
- 🧩 Plugin entry (
index.js) + manifest (manifest.json). - 🦾 TypeScript types for plugin development.
- ⚙️ Typecheck with
vue-tsc, unit tests with Vitest.
Requires Node >=22
Create a repo from this template on GitHub.
If you prefer to do it manually with the cleaner git history
npx degit talex-touch/tuff-plugin-template my-tuff-plugin
cd my-tuff-plugin
pnpm i # If you don't have pnpm installed, run: npm install -g pnpmWhen you use this template, update these fields first:
- Update plugin metadata in
manifest.json(id,name,version,icon,description) - Update features/commands in
manifest.json - Implement your logic in
index.js(onFeatureTriggered) - Update
LICENSEauthor (if needed) - Clean up the demo pages/routes if you don't need the dev UI
And, enjoy :)
See docs/PLAN_PRD.zh-CN.md.
- ✅
touch-translate: implemented (mock translation inindex.js) - ⏳
multi-source-translate: placeholder (declared inmanifest.json, not implemented yet) - ⏳
screenshot-translate: placeholder (declared inmanifest.json, not implemented yet)
Run and visit http://localhost:3333
For Tuff dev mode, check manifest.json#dev (default: http://localhost:3333/#/).
pnpm devTo build the App, run
pnpm buildAnd you will see the generated file in dist that ready to be served.
pnpm typecheck
pnpm test