本仓库为民间自制的 LiteLoaderQQNT 插件模板。
- 在编写插件时使用
pnpm
包管理器; - 被
Webpack
的打包速度困扰已久 - 希望使用
TypeScript
编写插件脚本 - 想使用
ESLint
纠正代码错误和统一格式 - 执行一行命令即可完成代码检查、代码打包和输出
zip
文件 - 使用
GitHub Actions
自动测试打包和发布 release
那么这个模板正好适合你!
- 点击本仓库页面右上角的
Use this template
,然后选择Create a new repository
- 在接下来的页面中填写你的仓库信息后,点击
Create repository
- 将创建的仓库克隆至本地,然后编辑
manifest.json
(文档) - (可选)编辑 TypeScript 配置文件、Vite 配置文件 和 ESLint 配置文件,让项目配置风格更符合你的口味
- 运行
pnpm install
安装依赖包,你也可以随意安装其他需要的依赖包 - 开始编写代码
- 执行
pnpm lint
检查代码 - 执行
pnpm build
打包代码并输出zip
文件 - 安装体验或是将成果分享给你的朋友吧!
请遵循 Rollup 文档 将运行不正常的模块添加至 Vite 的 rollupOptions
中,然后利用 vite-plugin-cp
插件将对应模块复制到 dist/node_modules
目录中。
最近突然发现一年前随手制作的这个模板竟然上了 LiteLoaderQQNT 官方文档,一想到我有一年多的时间未对此仓库进行任何维护,实属惭愧!
秉持着这样的心态对本仓库进行了翻新维护,并添加了 GitHub Actions 支持,以感恩大家一直的支持。
—— Misa Liu 2025/03/31
LiteLoaderQQNT-PluginTemplate-Vite
Copyright (C) 2025 HIMlaoS_Misa
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.