From e0a108a0e5f7f518be6f557fb32d462c4dd58d33 Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Wed, 30 Oct 2024 13:36:51 +0100 Subject: [PATCH] chore: update .gitattributes --- .gitattributes | 56 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 36 insertions(+), 20 deletions(-) diff --git a/.gitattributes b/.gitattributes index 11f26b1b2..c8c5d5796 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,22 +1,38 @@ -.gitattributes export-ignore -.gitignore export-ignore -.prettierrc export-ignore -.yarnrc.yml export-ignore -/.github export-ignore -/.idea export-ignore -/.yarn export-ignore -/coverage export-ignore -/private export-ignore -/tests/Mocks export-ignore -/tests/Unit export-ignore -/tests/__snapshots__ export-ignore +# Ignore all files and folders starting with a dot +.* export-ignore + +# But keep the phpstorm meta file, because it can be used even if it's in a dependency. +.meta/ -export-ignore +.meta/.phpstorm.meta.php -export-ignore + +# Folders +bin/ export-ignore +coverage/ export-ignore +docs/ export-ignore +private/ export-ignore +types/ export-ignore + +# The rest of the files in tests/ should be included +tests/Datasets/ export-ignore +tests/Mocks/ export-ignore +tests/Unit/ export-ignore +tests/__snapshots__/ export-ignore + +# Anything related to development tools +phpmd* export-ignore +phpstan* export-ignore +phpunit* export-ignore +rector* export-ignore + +# Other configuration files +*.xml export-ignore +release.config.js export-ignore + +# Docker Dockerfile export-ignore docker-compose.yml export-ignore -package.json export-ignore -phpmd.xml export-ignore -phpstan-baseline.php export-ignore -phpstan.neon.dist export-ignore -phpunit.xml export-ignore -rector.php export-ignore -release.config.js export-ignore -yarn.lock export-ignore +docker-compose.*.yml export-ignore + +# Yarn +package.json export-ignore +yarn.lock export-ignore