Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
fix(composer): Exclude test files from Composer production downloads #236
Test code should not end up in a production deployment for security reasons. Please exclude test code from Composer downloads. This can be done with https://blog.madewithlove.be/post/gitattributes/
Not sure if you also want to exclude other stuff like README and example files?
I think with .gitattributes you have to specify a black list (stuff that you want to ignore). Composer is primitive when it looks at those lines, so I think a white list is not possible https://github.com/composer/composer/blob/master/src/Composer/Package/Archiver/GitExcludeFilter.php