From d9576c66331d02f6fe7eb4db6bfc877c26b152ec Mon Sep 17 00:00:00 2001 From: Chun Yang Date: Tue, 9 Aug 2016 22:42:34 -0500 Subject: [PATCH] fix: move gitignore into a writeFileSync since it will interfear with current git project --- lib/create.js | 7 +++++++ templates/.gitignore | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) delete mode 100644 templates/.gitignore diff --git a/lib/create.js b/lib/create.js index 3ef4cda..7f44a6a 100644 --- a/lib/create.js +++ b/lib/create.js @@ -82,6 +82,13 @@ module.exports = function create(projectName) { logTask('Copy boilerplate'); const templatesPath = path.resolve(__dirname, '../templates'); cp('-R', `${templatesPath}/.`, './'); + const gitignorePath = path.resolve('./.gitignore'); + const gitignoreContent = `\ +npm-debug.log +node_modules/ +client/imports/generated/ +`; + fs.writeFileSync(gitignorePath, gitignoreContent); // prepare for deployment using meteor-multi-deploy exec('npm install -g meteor-multi-deploy'); diff --git a/templates/.gitignore b/templates/.gitignore deleted file mode 100644 index 1ca9571..0000000 --- a/templates/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules/ -npm-debug.log