Commit 866766c2 authored by lipengcheng 's avatar lipengcheng

x

parent 6c1acc48
...@@ -108,7 +108,7 @@ module.exports = class Creator { ...@@ -108,7 +108,7 @@ module.exports = class Creator {
// const source = path.resolve(__dirname, '../tpl/testgit') // const source = path.resolve(__dirname, '../tpl/testgit')
await generate(this.tmpTarget, this.targetDir, this.meta) await generate(this.tmpTarget, this.targetDir, this.meta)
// 移除临时目录 // 移除临时目录
// await fse.remove(this.tmpTarget) await fse.remove(this.tmpTarget)
// 进入项目初始化git // 进入项目初始化git
// 。。 // 。。
......
...@@ -28,8 +28,8 @@ async function generate(source, target, meta) { ...@@ -28,8 +28,8 @@ async function generate(source, target, meta) {
.source(source) .source(source)
.destination(target) .destination(target)
.use(async (files, metal, done) => { .use(async (files, metal, done) => {
const m = metal.metadata(); // const m = metal.metadata();
Object.assign(m, {email: 'xxxxx', description:'this is an extra attr' }); // Object.assign(m, {email: 'xxxxx', description:'this is an extra attr' });
const excludeFiles = ['CHANGELOG.md'] const excludeFiles = ['CHANGELOG.md']
excludeFiles.forEach(file => delete files[file]) excludeFiles.forEach(file => delete files[file])
done() 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