Skip to content

Commit

Permalink
fix: Fix CLI to include .gitignore in the templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Raymond Feng authored and raymondfeng committed Nov 9, 2017
1 parent 2c60b1e commit 842a191
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/cli/lib/project-generator.js
Expand Up @@ -168,6 +168,14 @@ module.exports = class extends Generator {
{globOptions: {dot: true}}
);

// Rename `_.gitignore` back to `.gitignore`.
// Please note `.gitignore` will be renamed to `.npmignore` during publish
// if it's there in the templates.
this.fs.move(
this.destinationPath('_.gitignore'),
this.destinationPath('.gitignore')
);

// Copy project type specific files from ./templates
this.fs.copyTpl(
this.templatePath('**/*'),
Expand Down

0 comments on commit 842a191

Please sign in to comment.