Fix #649 - Remove useless files from users and servers#679
Fix #649 - Remove useless files from users and servers#679Nek- merged 3 commits intoKnpLabs:masterfrom williamdes:gitattrs
Conversation
Nek-
left a comment
There was a problem hiding this comment.
Thank you for your help on improving Gaufrette. This could be part of the next release (coming soon) but I think you may have excluded too much files if I follow the logic of your PR description.
composer.json
Outdated
| "archive": { | ||
| "exclude": [ | ||
| "/tests", | ||
| "/phpunit.xml.dist" |
There was a problem hiding this comment.
spec folder and phpspec config file should be here to follow the logic entirely (it's part of the test suite). The .env.dist file is also absolutely required, as well as the make file.
Very cool ! |
TBH there's a bit of cleanup to do about this... Many config files and build-related stuff are sooo outdated... Maybe gonna work on this. But your work is nice thank you. |
Thank you, feel free to ping me for review on build stuff |
|
Thank you very much @williamdes ! |
Hi !
I did this change in two steps, first I excluded the files from the git archive:
git archive --help. GitHub usesgit archivefor users to be able to "Download" a branch or git tag.So I kept the test files and the phpunit config in it because: packing people on Debian/Alpine/Others... will download the source using scripts and do not want to have to clone your git history because they do not care about it and only want the source.
That said this is not what composer users want. They only want source file, so I excluded test files from the bundles that packagist produces.
Final users will only have source files, packaging people will have source+tests and devs can use git clone.
Fixes: #649