diff --git a/lib/Generator.js b/lib/Generator.js index c7f968b..85de85e 100644 --- a/lib/Generator.js +++ b/lib/Generator.js @@ -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')); } diff --git a/template/.gitignore b/template/_gitignore similarity index 100% rename from template/.gitignore rename to template/_gitignore