From 0b2be7e8e744d06fa7623728ec25cd00c657c53f Mon Sep 17 00:00:00 2001 From: Ayesh Karunaratne Date: Mon, 28 Sep 2020 18:25:52 +0700 Subject: [PATCH] Add a .gitattributes file with export-ignore rules Adds a new [`.gitattributes` file](https://php.watch/articles/composer-gitattributes) with `export-ignore` rules for tests and build files, which reduces the current package download size by ~40% when the zip packages (`--prefer-dist`) are downloaded. --- .gitattributes | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..132d0f4 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,8 @@ +# Exclude build/test files from archive +/tests export-ignore +/.editorconfig export-ignore +/.gitattributes export-ignore +/.gitignore export-ignore +/.php_cs export-ignore +/.travis.yml export-ignore +/phpunit.xml export-ignore