Skip to content

Commit

Permalink
Add a .gitattributes file with export-ignore rules
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ayesh committed Sep 28, 2020
1 parent 00497fa commit 0b2be7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0b2be7e

Please sign in to comment.