Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cli
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lhfe
cli
Commits
866766c2
Commit
866766c2
authored
Apr 01, 2021
by
lipengcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
6c1acc48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Creator.js
lib/Creator.js
+1
-1
generate.js
lib/generate.js
+2
-2
No files found.
lib/Creator.js
View file @
866766c2
...
@@ -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
// 。。
// 。。
...
...
lib/generate.js
View file @
866766c2
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment