@bve/git-cli
dowload project from git
Last updated 6 months ago by shihuajunze .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install @bve/git-cli 
SYNC missed versions from official npm registry.

简介

克隆Git项目,node 10上运行成功,12暂不支持

安装

npm install -g @bve/git-cli

初始化

生成配置文件

bve-git init

在当前目录生成git.config.js

/**
 * Git克隆配置文件
 * @param {String} output 输出目录,克隆项目存放目录
 * @param {Array} repos 项目配置
 * @param {String} repos[i].url 项目git地址
 * @param {String} repos[i].branch 分支
 * @param {Boolean} info 是否打印日志
 * @param {Boolean} clean 是否一直是clone,如果为false,则先clone,如果存在,则pull
 */
module.exports = {
  output: '',
  info: false,
  clean: false,
  repos: [
    {
      url: '',
      branch: '',
    }
  ],
}

克隆

配置好配置文件后,执行:

bve-git clone

执行其它配置文件

bve-git clone ./git.dev.config.js

其它

bve-git help

Current Tags

  • 0.0.13                                ...           latest (6 months ago)

6 Versions

  • 0.0.13                                ...           6 months ago
  • 0.0.12                                ...           6 months ago
  • 0.0.11                                ...           10 months ago
  • 0.0.10                                ...           a year ago
  • 0.0.9                                ...           a year ago
  • 0.0.8                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 6
This Month 6
Last Day 0
Last Week 0
Last Month 7
Dependencies (8)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |