Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ bob-plugin-template Public template

Template project for building Bob translate plugin

License

Notifications You must be signed in to change notification settings

liby/bob-plugin-template

Repository files navigation

Bob Plugin Template

使用说明

  1. 点击 Use this template > Create a new repository

  2. 将你在第 1 步中创建好的仓库克隆到本地

  3. 进入本地的仓库文件夹并运行依赖安装命令

    pnpm install
  4. 打开 public/info.json 文件,自定义插件信息,详情参见 Bob 官网文档。以下是必须修改的字段:

    1. identifier:插件的唯一标识符,必须由数字、小写字母和 . 组成。
    2. name:插件名称,例如:openai-translator
    3. homepage:插件的主页,这里需要你填写你的插件的 GitHub 仓库地址。
    4. appcast:插件的更新地址。
  5. (可选),更新 package.json 文件,例如 name 字段,将其修改为你的插件名称。

  6. 开发完成后,记得先更新 public/info.json 文件中的版本号,然后再运行以下命令打包插件

    pnpm run bump

    这条命令会先将插件打包输出到 dist 文件夹中,而后自动更新 appcast.json 文件。

开发环境

About

Template project for building Bob translate plugin

Topics

Resources

License

Stars

Watchers

Forks

Contributors