From 62acb20f9e49366a1614f9dca3c363a544b1f955 Mon Sep 17 00:00:00 2001 From: JelteMX Date: Sat, 25 Nov 2017 14:51:21 +0100 Subject: [PATCH] Bugfix missing file --- generators/app/templates/_gitignore | 4 ++++ generators/app/widget.js | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 generators/app/templates/_gitignore diff --git a/generators/app/templates/_gitignore b/generators/app/templates/_gitignore new file mode 100644 index 0000000..9221efe --- /dev/null +++ b/generators/app/templates/_gitignore @@ -0,0 +1,4 @@ +build +node_modules +dist +package-lock.json diff --git a/generators/app/widget.js b/generators/app/widget.js index 88c02cb..88c4f43 100644 --- a/generators/app/widget.js +++ b/generators/app/widget.js @@ -58,7 +58,7 @@ module.exports = class extends Generator { this._copySourceFile('.editorconfig'); this._copySourceFile('.eslintignore'); this._copySourceFile('.eslintrc'); - this._copySourceFile('.gitignore'); + this.fs.copy(this.templatePath(`_gitignore`), this.destinationPath('.gitignore')); this._copySourceFile('Gulpfile.js'); this._copySourceFile('postcss.config.js'); this._copySourceFile('webpack.config.js'); diff --git a/package.json b/package.json index 4ea34e4..740e1c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "generator-mendix-widget", - "version": "1.1.0", + "version": "1.1.1", "description": "Generate Mendix Widgets in ES6 style", "homepage": "https://github.com/JelteMX/generator-mendix-widget/", "author": {