From 7c95164feeacec5389a9086162fb1ab7cc8dfd50 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 19 Oct 2023 22:48:40 +0200 Subject: [PATCH] feat(flake): ignore .direnv by default --- templates/astro/.gitignore.twig | 4 ++++ templates/drupal/.gitignore.twig | 4 ++++ templates/fractal/.gitignore.twig | 4 ++++ templates/terraform/.gitignore.twig | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/templates/astro/.gitignore.twig b/templates/astro/.gitignore.twig index ef8f936..5a3a420 100644 --- a/templates/astro/.gitignore.twig +++ b/templates/astro/.gitignore.twig @@ -11,6 +11,10 @@ pnpm-debug.log* yarn-debug.log* yarn-error.log* +{% if flake is defined %} +.dir-env/ +{% endif %} + {% for path in git.ignore %} {{ path }} {% endfor %} diff --git a/templates/drupal/.gitignore.twig b/templates/drupal/.gitignore.twig index cdc1fb2..d9edb98 100644 --- a/templates/drupal/.gitignore.twig +++ b/templates/drupal/.gitignore.twig @@ -41,6 +41,10 @@ vendor/ docker-compose.override.yaml {% endif %} +{% if flake is defined %} +.dir-env/ +{% endif %} + {% for path in git.ignore %} {{ path }} {% endfor %} diff --git a/templates/fractal/.gitignore.twig b/templates/fractal/.gitignore.twig index 679e7a9..62a6f95 100644 --- a/templates/fractal/.gitignore.twig +++ b/templates/fractal/.gitignore.twig @@ -8,6 +8,10 @@ node_modules docker-compose.override.yaml {% endif %} +{% if flake is defined %} +.dir-env/ +{% endif %} + {% for path in git.ignore %} {{ path }} {% endfor %} diff --git a/templates/terraform/.gitignore.twig b/templates/terraform/.gitignore.twig index 520ccdb..3754a61 100644 --- a/templates/terraform/.gitignore.twig +++ b/templates/terraform/.gitignore.twig @@ -44,6 +44,10 @@ terraform.rc # End of https://www.toptal.com/developers/gitignore/api/terraform +{% if flake is defined %} +.dir-env/ +{% endif %} + {% for path in git.ignore %} {{ path }} {% endfor %}