- 获取项目代码(https or ssh)
git clone https://github.com/jsxiaosi/vue3-uni_app.git
git clone [email protected]:jsxiaosi/vue3-uni_app.git
- 安装依赖
cd vue3-uni_app
npm install
# 建议不要直接使用 cnpm 安装以来,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
# 如果下载依赖慢可以使用淘宝镜像源安装依赖
npm install --registry=https://registry.npm.taobao.org
- H5
npm run dev:h5
- 微信小程序
npm run dev:mp-weixin
- H5
npm run build:h5
- 微信小程序
npm run build:mp-weixin
- esLint - js 语法检测
- styleLint - 样式语法检测
- commitLint - git commit 提交规范检测
Pull Request:
- Fork 代码!
- 创建自己的分支:
git checkout -b feature/xxxx
- 提交你的修改:
git commit -m 'feature: add xxxxx'
- 推送您的分支:
git push origin feature/xxxx
- 提交
pull request
-
参考 vue 规范
feature
增加新功能fixbug
修复问题/BUGstyle
不影响程序逻辑的代码修改(修改空白字符,格式缩进,补全缺失的分号等,没有改变代码逻辑)perf
优化/性能提升refactor
重构revert
撤销修改docs
文档/注释chore
依赖更新/脚手架配置修改等