1 Star 0 Fork 0

neterm/qz-front-cli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.js 613 Bytes
一键复制 编辑 原始数据 按行查看 历史
neterm 提交于 2021-12-16 22:02 +08:00 . [fix]修复bug
const rm = require('rimraf').sync
const process = require('process')
const install = require('./lib/install')
const { main, sub } = require('./lib/repo')
const gitClone = require('./lib/git-clone')
const path = require('path')
module.exports = function (project, type) {
let url = type === 'main' ? main : sub
let dest = path.join(process.cwd(), project)
console.log('开始下载模板...')
gitClone(url, dest, { checkout: 'master', shallow: true }, function (err) {
if (err === undefined) {
rm(path.join(dest, '.git'))
console.log('安装依赖....')
install(dest)
}
})
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/neterm/qz-front-cli.git
git@gitee.com:neterm/qz-front-cli.git
neterm
qz-front-cli
qz-front-cli
master

搜索帮助