Files
mchat/ai-chat-web/README_0voice.md
2026-04-06 11:38:45 +08:00

64 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ai-chat-web
## node 安装
### windows
1. 上[官网](https://nodejs.org/en)下载18.16.0 LTS版本
2. 查看node 是否安装成功
```
node -v
npm -v
```
3. 安装pnpm
```
npm install pnpm -g
```
### ubuntu
1. 设置 apt 源,设置后可查看/etc/apt/sources.list.d/nodesource.list 文件
```
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
```
2. 安装nodejs
```
sudo apt-get install -y nodejs
```
3. 验证
```
node -v
npm -v
```
4. 安装pnpm
```
sudo npm install pnpm -g
```
## 编译运行
1. 依赖安装
```
pnpm bootstrap
```
2. 本地运行
```
pnpm dev
```
3. 打包发布版本
```
pnpm build-only
```
## 提交代码的规则
```
* commitlint 规则是指在提交代码时要遵循的规范,常见的 commitlint 规则如下:
* type用于说明 commit 的类型,例如 feat新功能、fix修复 bug、docs文档更新、style样式修改、refactor重构代码等。
* scope用于说明 commit 影响的范围,例如组件、模块、页面等。
* subject用于简短地描述 commit 的内容,建议不超过 50 个字符。
* body用于详细描述 commit 的改动内容,可以分成多行。
* footer用于关闭 issue 或者添加相关链接等信息。
* 长度限制commit message 不应该过长,一般不超过 72 个字符。
```