Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip additional files from distribution #286

Closed
wants to merge 1 commit into from
Closed

Strip additional files from distribution #286

wants to merge 1 commit into from

Conversation

TimWolla
Copy link

This strips additional files from the distribution to reduce the traffic / download times and to make /vendor/ easier to review.

The .tar export of git archive is roughly 90kB smaller, from 220kB down to 130kB, mostly due to no longer including /test/.

@TimWolla
Copy link
Author

I'm now seeing

"archive": {
"exclude": [
"/composer.lock",
"/docs",
"/.gitattributes",
"/.github",
"/.gitignore",
"/guides",
"/.phive",
"/.php-cs-fixer.cache",
"/.php-cs-fixer.dist.php",
"/.phpdoc",
"/phpdoc.dist.xml",
"/.phpunit.result.cache",
"/phpunit.xml.dist",
"/psalm.xml",
"/test",
"/tools",
"/.tool-versions",
"/vendor"
]
}
in composer.json, but that doesn't appear to have an effect. composer require maennchen/zipstream-php in an empty directory results in all those files existing.

@maennchen
Copy link
Owner

See #285 and #206

@TimWolla
Copy link
Author

I see. Thank you for pointing me to those issues. I apologize for not searching first.

@TimWolla TimWolla closed this Sep 25, 2023
@TimWolla TimWolla deleted the gitattributes branch September 25, 2023 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants