Skip to content

Commit

Permalink
fix: move gitignore into a writeFileSync since it will interfear with…
Browse files Browse the repository at this point in the history
… current git project
  • Loading branch information
Chun-Yang committed Aug 10, 2016
1 parent 06ef0eb commit d9576c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 7 additions & 0 deletions lib/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 0 additions & 2 deletions templates/.gitignore

This file was deleted.

0 comments on commit d9576c6

Please sign in to comment.