代码拉取完成,页面将自动刷新
感谢你使用 Wot Design Uni。
以下是关于向 Wot Design Uni 提交反馈或代码的指南。在向 Wot Design Uni 提交 issue 或者 PR 之前,请先花几分钟时间阅读以下内容。
git clone
将自己 github 上 fork 得到的源码同步到到你的本地master
分支进行开发,我们只接受此分支上的代码贡献。如果 GitHub 克隆速度较慢,你也可以直接克隆 Wot Design Uni 在 gitee 上的镜像仓库:
git clone https://gitee.com/fant-mini/wot-design-uni.git
镜像仓库仅用于加快国内的访问速度,请勿在镜像仓库中提 issue 和 Pull Request。
在编写代码时,请注意:
ESLint
校验。prettier
进行代码格式化。新功能需要标注最低版本号,如何确定版本号呢?当然没那么复杂啦!只需要各位贡献者在/docs/*.md
内需要显示最低版本号的地方写上$LOWEST_VERSION$
占位符即可;当下一次发版时,脚手架将会自动确定版本号并替换全部/docs/*.md
中的$LOWEST_VERSION$
占位符
| 参数 | 说明 | 类型 | 可选值 | 默认值 | 最低版本 |
| ----- | --------------- | ------ | --------- | --------- | ---------------- |
| text | 设置通知栏文案 | `string` | - | - | $LOWEST_VERSION$ |
开发之后,在 commit 代码时,commit message 请遵循以下格式:
如不按照此以下格式,
git commit
可能无法正常工作。
<Commit 类型>(Commit 修改项): <commit 描述>
// 或者
<Commit 类型>: <commit 描述>
例如:
npm run commit
# 或者
yarn commit
# 或者
pnpm commit
## 执行命令后根据修改类型选择
[
{
"type": "feat",
"section": "✨ Features | 新功能",
"hidden": false
},
{
"type": "fix",
"section": "🐛 Bug Fixes | Bug 修复",
"hidden": false
},
{
"type": "init",
"section": "🎉 Init | 初始化",
"hidden": true
},
{
"type": "docs",
"section": "✏️ Documentation | 文档",
"hidden": false
},
{
"type": "style",
"section": "💄 Styles | 风格",
"hidden": true
},
{
"type": "refactor",
"section": "♻️ Code Refactoring | 代码重构",
"hidden": true
},
{
"type": "perf",
"section": "⚡ Performance Improvements | 性能优化",
"hidden": true
},
{
"type": "test",
"section": "✅ Tests | 测试",
"hidden": true
},
{
"type": "revert",
"section": "⏪ Revert | 回退",
"hidden": true
},
{
"type": "build",
"section": "📦 Build System | 打包构建",
"hidden": true
},
{
"type": "chore",
"section": "🚀 Chore | 构建/工程依赖/工具",
"hidden": true
},
{
"type": "ci",
"section": "👷 Continuous Integration | CI 配置",
"hidden": true
}
]
commit 描述说明了我们本次提交的具体描述,具体内容视情况而定,无固定规范。
如果你是第一次在 GitHub 上提 Pull Request ,可以阅读下面这两篇文章来学习:
在提交 Pull Request 时,请注意:
feature/add_button
。Pull Request 的标题应该遵循以下格式:
type:commit message
示例:
可选的类型:
提 Pull Request 前,请依照下面的流程同步主仓库的最新代码:
# 添加主仓库到 remote
git remote add upstream https://github.com/Moonofweisheng/wot-design-uni.git
# 拉取主仓库最新代码
git fetch upstream
# 切换至 master 分支
git checkout master
# 合并主仓库代码
git merge upstream/master
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。