From cee03151e6f94f37ebd1a8f268e01cc646ea3568 Mon Sep 17 00:00:00 2001 From: Niels Date: Wed, 26 Jun 2024 21:20:08 +0200 Subject: [PATCH] added gitignore file in init --- src/init.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/init.ts b/src/init.ts index dd813ded..f6b89aeb 100644 --- a/src/init.ts +++ b/src/init.ts @@ -251,6 +251,21 @@ async function generatePrettierConfig(options: Options): Promise { return generateConfigFile(options, './.prettierrc.js', style); } +async function generateGitIngore(options: Options): Promise { + const config = `.DS_Store +.nyc_output +.vscode +build +coverage +node_modules +npm-debug.log +yarn-error.log +yarn.lock +__pycache__ +`; + return generateConfigFile(options, './.gitignore', config); +} + async function generateEditorConfig(options: Options): Promise { const config = `root = true @@ -337,6 +352,7 @@ export async function init(options: Options): Promise { generateESLintIgnore(options), generatePrettierConfig(options), generateEditorConfig(options), + generateGitIngore(options), ]); await installDefaultTemplate(options);