From 331e8ad2986c434e61d89ec55d70ed3435264d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20H=C3=A4u=C3=9Fler?= Date: Mon, 19 Feb 2024 08:46:25 +0100 Subject: [PATCH] [TASK] Exclude development-only files from dist archives This commit adds a `.gitattributes` file which contains rules to exclude several development-only files and folders from being packaged into dist archives. This way, those files will not be existent when e.g. requiring the library with Composer's default installation method (`"preferred-install": "dist"`). --- .gitattributes | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..bcb5dc2 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,8 @@ +/.build export-ignore +/.ddev export-ignore +/.github export-ignore +/tests export-ignore +/.editorconfig export-ignore +/.gitattributes export-ignore +/.gitignore export-ignore +/composer.lock export-ignore