From 4186ae490ddaa99ecd5fca3f4adcbada0f27e183 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Fri, 17 Jan 2020 19:30:06 +0100 Subject: [PATCH] fix --- snippets/node/index.js | 6 ++++++ snippets/node/template/.gitignore | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) delete mode 100644 snippets/node/template/.gitignore diff --git a/snippets/node/index.js b/snippets/node/index.js index fe31889..0de79ed 100644 --- a/snippets/node/index.js +++ b/snippets/node/index.js @@ -52,6 +52,12 @@ async function run (folder, args) { path.join (snip_folder, 'package.json'), JSON.stringify (package_json, null, 2) ); + + await fs.writeFile ( + path.join (snip_folder, '.gitignore'), + `/node_modules/ +/dist/` + ); } /** diff --git a/snippets/node/template/.gitignore b/snippets/node/template/.gitignore deleted file mode 100644 index b0a5c34..0000000 --- a/snippets/node/template/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/node_modules/ -/dist/