From ff5f2aa87555d7df23a314b3f339bdbd7ae839ef Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 24 Sep 2023 21:47:45 +0100 Subject: [PATCH] feat(astro): add .gitignore --- src/Action/CreateListOfFilesToGenerate.php | 1 + templates/astro/.gitignore | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 templates/astro/.gitignore diff --git a/src/Action/CreateListOfFilesToGenerate.php b/src/Action/CreateListOfFilesToGenerate.php index fd16c20..bf1376f 100644 --- a/src/Action/CreateListOfFilesToGenerate.php +++ b/src/Action/CreateListOfFilesToGenerate.php @@ -29,6 +29,7 @@ final class CreateListOfFilesToGenerate case (strtolower(ProjectType::Astro->name)): $filesToGenerate = collect([ ['astro/.envrc', '.envrc'], + ['astro/.gitignore', '.gitignore'], ['astro/flake.nix', 'flake.nix'], ['astro/tsconfig.json', 'tsconfig.json'], ])->map(function (array $file) { diff --git a/templates/astro/.gitignore b/templates/astro/.gitignore new file mode 100644 index 0000000..83a283a --- /dev/null +++ b/templates/astro/.gitignore @@ -0,0 +1,12 @@ +# {{ managedText | raw }} + +.astro +.direnv +.env +.env.production +dist +node_modules +npm-debug.log* +pnpm-debug.log* +yarn-debug.log* +yarn-error.log*