1 Star 1 Fork 0

Luto Yvan / siyuan-plugin-sample

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Siyuan Sample Plugin

This is a sample plugin of siyuan plugin system.

Install

Clone the project to your computer. Use pnpm install to install the dependencies. Pnpm is mordern node module manager. You can learn it from Pnpm website.

Then you can find the entry of plugin at src/index.ts, which export a default class. Plugins must export a default class which extended from Plugin. Plugin has onload and onunload lifecycle hook. Which will called when the plugin is loaded and unloaded.

Build

Run pnpm build to generate the target main.js in dist/ folder. Copy it and the manifest.json and put them into plugins/<pluginName> folder in your Siyuan workspace, like workspace/data/plugins/siyuan-plugin-sample.

Toolchain

  • Vite
  • Pnpm
  • Typescript: Strongly recommanded.

Feel free to install your own dependencies, like vue, react, svelte and so on.

Manifest

You should write a manifest.json file to describe the plugin. It contains name, version, description, author and url.

空文件

简介

siyuan-plugin-sample, a sample of siyuan plugin in siyuan plugin system. 展开 收起
JavaScript 等 2 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/zuoez02/siyuan-plugin-sample.git
git@gitee.com:zuoez02/siyuan-plugin-sample.git
zuoez02
siyuan-plugin-sample
siyuan-plugin-sample
master

搜索帮助