From 56d9918aa7c799eccdcde8c3333a6ccf39ccbd55 Mon Sep 17 00:00:00 2001 From: Matthew Batchelder Date: Sat, 12 Jul 2025 17:06:23 -0400 Subject: [PATCH 1/4] Add .gitattributes for package distribution Excludes development and documentation files from Composer package: - Development configs (.editorconfig, .gitignore, .gitattributes) - GitHub workflows - Documentation folder - Test files and configs - Vendor directory This is, of course, excluding things that are not yet part of the repository but will likely be part of it soon. --- .gitattributes | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..cc70404e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,9 @@ +.editorconfig export-ignore +.gitattributes export-ignore +/.github/ export-ignore +.gitignore export-ignore +/docs/ export-ignore +/tests/ export-ignore +/vendor/ export-ignore +/phpstan.neon.dist export-ignore +/phpunit.xml.dist export-ignore From ec45dd2b8c6ba0e92938ab0b426ffdc3537451f6 Mon Sep 17 00:00:00 2001 From: Matthew Batchelder Date: Mon, 14 Jul 2025 09:27:51 -0400 Subject: [PATCH 2/4] Add phpcs.xml.dist to .gitattributes Co-authored-by: Felix Arntz --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index cc70404e..9c3e63c5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,5 +5,6 @@ /docs/ export-ignore /tests/ export-ignore /vendor/ export-ignore +/phpcs.xml.dist export-ignore /phpstan.neon.dist export-ignore /phpunit.xml.dist export-ignore From 42cc6e8924d9f3de2c4ee65c8437754e8113c678 Mon Sep 17 00:00:00 2001 From: Matthew Batchelder Date: Mon, 14 Jul 2025 09:34:44 -0400 Subject: [PATCH 3/4] Exclude md files in the root other than LICENSE and README --- .gitattributes | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitattributes b/.gitattributes index cc70404e..710fc8c8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,6 +2,9 @@ .gitattributes export-ignore /.github/ export-ignore .gitignore export-ignore +/*.md export-ignore +/LICENSE.md -export-ignore +/README.md -export-ignore /docs/ export-ignore /tests/ export-ignore /vendor/ export-ignore From d036b94f9b211d1fe7c6e269dc13226d7a2288a7 Mon Sep 17 00:00:00 2001 From: Matthew Batchelder Date: Mon, 14 Jul 2025 12:35:00 -0400 Subject: [PATCH 4/4] Fix indenting of -export-ignore --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index b96d2b22..9936f69d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,7 +3,7 @@ /.github/ export-ignore .gitignore export-ignore /*.md export-ignore -/LICENSE.md -export-ignore +/LICENSE.md -export-ignore /README.md -export-ignore /docs/ export-ignore /tests/ export-ignore