From 6a10b7215e29d49bebbfff1cbd1b26a474bff7b2 Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Wed, 29 Nov 2023 16:05:45 +0000 Subject: [PATCH 1/2] feat: add Git Attributes This adds a `.gitattributes` file to exclude tests and other unnecessary files from production releases. --- .gitattributes | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..817e43e0 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,22 @@ +* text=auto + +# Path-based git attributes +# https://git-scm.com/docs/gitattributes + +# Ignore all test and documentation with "export-ignore". +/.circleci export-ignore +/.gitattributes export-ignore +/.github export-ignore +/.gitignore export-ignore +/.ldrelease export-ignore +/.php-cs-fixer.php export-ignore +/CHANGELOG.md export-ignore +/CODEOWNERS export-ignore +/CONTRIBUTING.md export-ignore +/Makefile export-ignore +/SECURITY.md export-ignore +/phpdoc.dist.xml export-ignore +/phpunit.xml export-ignore +/psalm.xml export-ignore +/test-service export-ignore +/tests export-ignore From 7a8d841cf5685a7573f27b826d39dc257a4f9b8d Mon Sep 17 00:00:00 2001 From: Matthew Keeler Date: Fri, 1 Dec 2023 17:25:18 -0500 Subject: [PATCH 2/2] Remove non-existent directories --- .gitattributes | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 817e43e0..c52a5552 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,11 +4,9 @@ # https://git-scm.com/docs/gitattributes # Ignore all test and documentation with "export-ignore". -/.circleci export-ignore /.gitattributes export-ignore /.github export-ignore /.gitignore export-ignore -/.ldrelease export-ignore /.php-cs-fixer.php export-ignore /CHANGELOG.md export-ignore /CODEOWNERS export-ignore