#鸽子窝
组队打卡工具
1. 自行配置react-native的开发环境
2. lint commit message
npm install commitizen -g
3. IDE安装prettier的插件,配置save的时候自动使用prettier进行format, 具体方法自行百度
4. IDE安装gitLens插件
// 开启JS-server
npm run start
// 新开一个终端
npm run android
- 拉到本地后新建自己的feature分支,进行开发
git checkout -b <your-feature-branch-name>
- 形成一次提交
// 使用npm run commit, 禁止使用git commit
- 开发完毕后合到boe分支,再推向远程
1. git checkout boe
2. git fetch origin boe
3. git rebase origin/boe
4. git merge <your-frature-branch-name>
5. git push origin boe
// 处理冲突时根据gitLens的信息找相关研发沟通解决冲突,严禁处理不可控的冲突
-
在github上从boe向master提pr,找人帮你做code review
-
review list
- 代码规范(空行,魔法数字,代码冗余,业务错误...)
- commit message 戳这里
- 变量,函数命名
- ...