# 使用 npm
npm install
# 使用 yarn
yarn
# 使用 npm
npm run dev
# 使用 yarn
yarn dev
# 使用 npm
npm run build
# 使用 yarn
yarn build
提交之前运行一次以下代码 lint 以下防止 commit 被拦住
# 使用 npm
npm run lint
# 使用 yarn
yarn lint
本操作会运行"build", "test", "lint"三个命令
npx turbo deploy
以下操作仅用于仓库维护者
- 安装
yarn
- 登录你的 vercel 账号
npx turbo login
- 连接上 vercel 缓存
<<<<<<< HEAD
commit的模板:
type(scope): subject
type为commit的类型,本仓库的commit类型仅支持如下:
feat: 新特性
fix: 修改问题
refactor: 代码重构
docs: 文档修改
style: 代码格式修改
test: 测试用例修改
chore: 其他修改, 比如构建流程, 依赖管理.
pref: 性能提升的修改
ci: CI 的修改
revert: revert 前一个 commit ( 撤销前一个commit )
vercel: vercel 部署相关的修改
scope是文件名/模块名/影响的范围
例如 Button
subject为commit概述
建议符合 50/72 formatting
例 feat(component): add success submit tips
注意 冒号和subject之间要加空格
=======
npx turbo link
>>>>>>> 3da98ef395cbc9c1b55fcec14512921103f14178
commit 的模板:
type(scope): subject
type
为 commit 的类型,本仓库的 commit 类型仅支持如下:
feat
: 新特性fix
: 修改问题refactor
: 代码重构docs
: 文档修改style
: 代码格式修改test
: 测试用例修改chore
: 其他修改, 比如构建流程, 依赖管理.pref
: 性能提升的修改ci
: CI 的修改revert
: revert 前一个 commit ( 撤销前一个 commit )vercel
: vercel 部署相关的修改
scope
是文件名/模块名/影响的范围
例如 Button
subject
为 commit 概述
建议符合 50/72 formatting
例 feat(component): add success submit tips
注意 冒号和 subject 之间要加空格