1.1.2 • Published 4 years ago

@yineng/pi_cli v1.1.2

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

pi_cli 项目脚手架

命令行

  • 安装:npm i -g @yineng/pi_cli@latest
  • 运行:pi_cli ./demo.conf
  • 开发人员发布:npm publish (需要npm的yineng的账号密码)

配置

demo.conf 例子

{
    "path": "../../pi_sys",
    "url": "http://192.168.31.241:10080/tech/pi_sys.git",
    "branch": "master"
}, {
    "path": "../../pi_build",
    "url": "http://192.168.31.241:10080/tech/pi_build.git",
    "tag": "1.0"
}, {
    "path": "../../pi_gui",
    "url": "http://192.168.31.241:10080/tech/pi_gui.git",
    "commitHash": "bc58ce300f12f8878192b945d85011f771f59ce1"
}, {
    "path": "../../pi_babylon",
    "url": "http://192.168.31.241:10080/tech/pi_babylon.git",
    "branch": "master"
}, {
    "path": "../../pi_pt",
    "url": "http://192.168.31.241:10080/tech/pi_pt.git",
    "branch": "master"
}

配置 字段说明

注意: 三种字段,不能共存,需要加配置合法性判断

  • branch:指定的分支对应最新版本,失败则报错
  • tag,更新到对应的tag版本,失败则报错
  • commitHash:hash是完成的长hash,更新到指定的分支对应commitHash的版本,失败则报错

项目使用约定

功能

  • 获取代码
    • 本地找不到目录,clone:指定 url-本地路径-branch|tag|commitHash
    • 本地找到目录,如果git status不是想要的:pull | checkout:指定 url-本地路径-branch|tag|commitHash
  • branch 或 tag 或 commitHash
    • 对项目git库,一般都是 获取 给定分支 的最新版本
    • 对底层git库,一般都是 获取 给定tag | commitHash 的代码
1.1.2

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago