npm install it-cmdsh
x-tool
$ node bin/git-clone.js https://gitee.com/yanxxit/conf.git
node bin/git-clone.js https://github.com/yanxxit/conf.git conf2
node bin/git-clone.js https://github.com/yanxxit/node-module-study.gitgit clone https://github.com/yanxxit/node-module-study.git
`$3
使用
x-git-clone 命令克隆 Git 仓库:`sh
基本用法
x-git-clone [destination]示例
x-git-clone https://github.com/user/repo.git
x-git-clone git@github.com:user/repo.git
x-git-clone user/repo # GitHub 简写格式克隆特定分支
x-git-clone -b 创建浅克隆(只克隆最近的提交)
x-git-clone --depth 1克隆单一分支
x-git-clone --single-branch
`$3
`js
npm link
`
接下来剩下的就是测试了,对于测试来说不需要把安装包推到npm中,npm为了方便,提供了npm link命令,可以实现预发布。在项目根目录中使用npm link没有报错的话,就说明推送成功了。现在就可以在全局中使用q-init了。在全局中使用
initP -h命令,能够输出所编译的help`信息就说明可以初始化项目了。