Commit 866766c2 authored by lipengcheng 's avatar lipengcheng

x

parent 6c1acc48
......@@ -108,7 +108,7 @@ module.exports = class Creator {
// const source = path.resolve(__dirname, '../tpl/testgit')
await generate(this.tmpTarget, this.targetDir, this.meta)
// 移除临时目录
// await fse.remove(this.tmpTarget)
await fse.remove(this.tmpTarget)
// 进入项目初始化git
// 。。
......
......@@ -28,8 +28,8 @@ async function generate(source, target, meta) {
.source(source)
.destination(target)
.use(async (files, metal, done) => {
const m = metal.metadata();
Object.assign(m, {email: 'xxxxx', description:'this is an extra attr' });
// const m = metal.metadata();
// Object.assign(m, {email: 'xxxxx', description:'this is an extra attr' });
const excludeFiles = ['CHANGELOG.md']
excludeFiles.forEach(file => delete files[file])
done()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment