antlr-php-runtime icon indicating copy to clipboard operation
antlr-php-runtime copied to clipboard

Exclude QA / CI files from release using .gitattributes

Open dkarlovi opened this issue 2 years ago • 0 comments

✨ 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.

dkarlovi avatar Feb 05 '24 10:02 dkarlovi