diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4bd2b46..d660129 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -24,13 +24,22 @@ pnpm docs:dev pnpm test:watch ``` -我们使用 cz-git 以交互式完成 git commit。 +我们使用 cz-git 交互式进行 git commit。 ```bash git add . pnpm cz ``` +脚本列表 + +- `pnpm build` 打包源代码 +- `pnpm watch` 监听文件变更并运行 `build` +- `pnpm test` 单元测试 +- `pnpm test:watch` 监听文件变更并运行 `test` +- `pnpm test:cov` 运行 `test` 并输出测试覆盖率 +- `pnpm docs:dev` 启动开发环境的文档服务器 + ## 贡献 ### 现有功能 diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index f2d2a15..0fa1bfb 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -131,6 +131,19 @@ export default defineConfig({ }, ], }, + { + text: '致贡献者', + items: [ + { + text: '行为准则', + link: 'https://github.com/zjx0905/axios-miniprogram/blob/main/CODE_OF_CONDUCT.md', + }, + { + text: '贡献指南', + link: 'https://github.com/zjx0905/axios-miniprogram/blob/main/CONTRIBUTING.md', + }, + ], + }, ], socialLinks: [