【github贡献】参与elementUI3基本操作

508 阅读1分钟

将官方代码fork到自己github

克隆到本地

git clone https://github.com/GeekQiaQia/element3

安装依赖

  # 设置国内镜像
  yarn config set registry https://registry.npm.taobao.org
  # --ignore-scripts  用于忽略chrome浏览器的下载
  yarn install --ignore-scripts  

运行单元测试 jest

npm i jest -g 
jest --coverage

开发前同步官方代码

git remote add upstream https://github.com/kkbjs/element3

拉取合并远程分支到master分支

随时保持你的master分支永远是官方最新代码

# 抓取源仓库修改 master分支
git fetch upstream master
# 切换分支
git checkout master
# 合并远程分支
git merge upstream/master