From 516f0156c9026d91ffea63c68301ed30299ed0ef Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Sun, 9 Aug 2020 18:36:57 +0530 Subject: [PATCH] chore: update starter templates --- src/commands/basic/init.js | 1 + .../starter-templates/GraphQL/{.gitignore => .mevngitignore} | 0 .../starter-templates/Nuxt.js/{.gitignore => .mevngitignore} | 0 .../starter-templates/basic/{.gitignore => .mevngitignore} | 0 .../starter-templates/pwa/{.gitignore => .mevngitignore} | 0 5 files changed, 1 insertion(+) rename src/templates/starter-templates/GraphQL/{.gitignore => .mevngitignore} (100%) rename src/templates/starter-templates/Nuxt.js/{.gitignore => .mevngitignore} (100%) rename src/templates/starter-templates/basic/{.gitignore => .mevngitignore} (100%) rename src/templates/starter-templates/pwa/{.gitignore => .mevngitignore} (100%) diff --git a/src/commands/basic/init.js b/src/commands/basic/init.js index 71739a688..0f0c62109 100644 --- a/src/commands/basic/init.js +++ b/src/commands/basic/init.js @@ -91,6 +91,7 @@ const fetchTemplate = async (template) => { const renameFromPath = path.join(dest, template); const renameToPath = path.join(dest, 'client'); fs.renameSync(renameFromPath, renameToPath); + fs.renameSync(`${renameToPath}/.mevngitignore`, `${renameToPath}/.gitignore`); // Prompt the user whether he/she requires pwa support if (template === 'Nuxt.js') { diff --git a/src/templates/starter-templates/GraphQL/.gitignore b/src/templates/starter-templates/GraphQL/.mevngitignore similarity index 100% rename from src/templates/starter-templates/GraphQL/.gitignore rename to src/templates/starter-templates/GraphQL/.mevngitignore diff --git a/src/templates/starter-templates/Nuxt.js/.gitignore b/src/templates/starter-templates/Nuxt.js/.mevngitignore similarity index 100% rename from src/templates/starter-templates/Nuxt.js/.gitignore rename to src/templates/starter-templates/Nuxt.js/.mevngitignore diff --git a/src/templates/starter-templates/basic/.gitignore b/src/templates/starter-templates/basic/.mevngitignore similarity index 100% rename from src/templates/starter-templates/basic/.gitignore rename to src/templates/starter-templates/basic/.mevngitignore diff --git a/src/templates/starter-templates/pwa/.gitignore b/src/templates/starter-templates/pwa/.mevngitignore similarity index 100% rename from src/templates/starter-templates/pwa/.gitignore rename to src/templates/starter-templates/pwa/.mevngitignore