Skip to content

Commit

Permalink
fix: gitignore -> npmignore
Browse files Browse the repository at this point in the history
  • Loading branch information
int64ago committed Sep 8, 2019
1 parent ebdaab8 commit 48e44c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,17 @@ class Generator extends Editor {
this.destinationPath('package.json'),
answers,
);
await this.copyFile(
this.templatePath('_gitignore'),
this.destinationPath('.gitignore'),
);
await this.copyFile(
this.templatePath('index.js'),
this.destinationPath('index.js'),
answers,
);
await this.deleteFile(this.destinationPath('_package.json'));
await this.deleteFile(this.destinationPath('_gitignore'));
if (answers.pluginType === 'server') {
await this.deleteFile(this.destinationPath('client.js'));
}
Expand Down
File renamed without changes.

0 comments on commit 48e44c7

Please sign in to comment.