From 3ece189cc659a240f5574591f9e6436e3a58ca8c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 5 Feb 2024 07:26:34 +0000 Subject: [PATCH] Use an inclusive .gitignore file Ignore everything and explicitly add required directories and files. --- .gitignore | 18 ++++++++++++++---- build.yaml | 9 +++++++-- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 2c93fe1f..2619860f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,19 @@ # Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs. -/output_*/ -/vendor/ +/* -/.direnv/ +!/.gitignore +!/app/ +!/build.yaml +!/composer.{json,lock} +!/run.local +!/source/ + +!/flake.{nix,lock} -/node_modules/ /source/build/ +!/assets/ +!/data/ +!/package.json +!/pnpm-lock.yaml +!/stub.md diff --git a/build.yaml b/build.yaml index cfc8d9d8..48474bcc 100644 --- a/build.yaml +++ b/build.yaml @@ -12,8 +12,13 @@ flake: git: ignore: - - /node_modules/ - - /source/build/ + - '/source/build/' + - '!/assets/' + - '!/data/' + - '!/package.json' + - '!/pnpm-lock.yaml' + - '!/stub.md' experimental: + createInclusiveGitIgnoreFile: true createTmuxStartupFile: true