antlr / antlr-php-runtime

PHP Runtime for ANTLR4
BSD 3-Clause "New" or "Revised" License
81 stars 19 forks source link

Exclude QA / CI files from release using .gitattributes #41

Open dkarlovi opened 7 months ago

dkarlovi commented 7 months ago

✨ Feature request

Exclude all but the necessary files from the released package using .gitattributes

Motivation

It removes all but production files from the released package.

Example

https://github.com/symfony/config/blob/7.0/.gitattributes

Alternatives

The unnecessary files stay in the package.

Additional context

It's good practice to remove all but the strictly necessary files for production use from releases, this can typically substantially reduce the disk size (which is important for containerized apps), but it's all good hygiene practice.