修复.gitignore缺失的bug

master
yutent 2023-05-30 15:36:23 +08:00
parent 61ffe4668a
commit fb6116d108
3 changed files with 16 additions and 14 deletions

View File

@ -140,7 +140,21 @@ function sleep(num = 1) {
console.log('[ooc-------]', '30%') console.log('[ooc-------]', '30%')
fs.cp(join(root, './lib/common'), targetDir) fs.cp(join(root, './lib/common'), targetDir)
fs.cp(join(root, './lib/common/.gitignore'), targetDir) fs.echo(
`
dist
node_modules
._*
.Spotlight-V100
.Trashes
.DS_Store
.AppleDouble
.LSOverride
`,
join(targetDir, '.gitignore')
)
console.log('[oooooc----]', '60%') console.log('[oooooc----]', '60%')
{ {

12
lib/common/.gitignore vendored
View File

@ -1,12 +0,0 @@
dist
node_modules
._*
.Spotlight-V100
.Trashes
.DS_Store
.AppleDouble
.LSOverride

View File

@ -1,7 +1,7 @@
{ {
"name": "create-fite-app", "name": "create-fite-app",
"type": "module", "type": "module",
"version": "1.1.1", "version": "1.1.2",
"bin": { "bin": {
"create-fite-app": "index.js" "create-fite-app": "index.js"
}, },