脚手架发布

架构设计

git flow 自动化

大厂 git flow 流程

单人开发流程:

image

多人协作开发流程:image

git 自动化流程开发

  • GitFlow
  • 通过 simple-git 操作 git 命令
  • Github 和 Gitee OpenAPI 接入

Git 仓库初始化

本地 Git 初始化

  • 使用SimpleGit

Github 获取 token

  • token 地址:https://github.com/settings/keys

  • 帮助文档:https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account

查看本地 token

查看.ssh文件夹:

ls -al ~/.ssh
1

查看具体文件内容:

cat ~/.ssh/id_rsa.pub
1

Gitee 获取 token

  • token 地址:https://gitee.com/profile/sshkeys

  • 帮助文档:https://gitee.com/help/articles/4181#article-header0

GitFlow 流程实现

本地开发测试

imooc-cli-dev publish --targetPath /Users/cass/Desktop/code/learning/web-architect/lc-imooc-cli-dev/packages/publish --debug
1
Last Updated: 2023/8/2 10:45:34
Contributors: licong96