From fb6116d1089c1208407a6bab0193ecb2381a9e34 Mon Sep 17 00:00:00 2001 From: yutent Date: Tue, 30 May 2023 15:36:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D.gitignore=E7=BC=BA=E5=A4=B1?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 16 +++++++++++++++- lib/common/.gitignore | 12 ------------ package.json | 2 +- 3 files changed, 16 insertions(+), 14 deletions(-) delete mode 100644 lib/common/.gitignore diff --git a/index.js b/index.js index dd1899a..fdf727f 100755 --- a/index.js +++ b/index.js @@ -140,7 +140,21 @@ function sleep(num = 1) { console.log('[ooc-------]', '30%') 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%') { diff --git a/lib/common/.gitignore b/lib/common/.gitignore deleted file mode 100644 index d9dbfc1..0000000 --- a/lib/common/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ - -dist -node_modules - -._* - -.Spotlight-V100 -.Trashes -.DS_Store -.AppleDouble -.LSOverride - diff --git a/package.json b/package.json index 8352ec1..b16402a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "create-fite-app", "type": "module", - "version": "1.1.1", + "version": "1.1.2", "bin": { "create-fite-app": "index.js" },