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

[TASK] Exclude development-only files from dist archives #25

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

eliashaeussler
Copy link
Contributor

This PR adds a .gitattributes file which contains rules to exclude several development-only files and folders from being packaged into dist archives. This way, those files will not be existent when e.g. requiring the library with Composer's default installation method ("preferred-install": "dist").

This commit adds a `.gitattributes` file which contains rules to
exclude several development-only files and folders from being
packaged into dist archives. This way, those files will not be
existent when e.g. requiring the library with Composer's default
installation method (`"preferred-install": "dist"`).
@a-r-m-i-n
Copy link
Owner

Very cool. Didn't know about this feature of git archive. The src/compiler.php file could also get excluded, it's only used to build the PHAR executables.

@eliashaeussler
Copy link
Contributor Author

Very cool. Didn't know about this feature of git archive. The src/compiler.php file could also get excluded, it's only used to build the PHAR executables.

Done :)

@a-r-m-i-n a-r-m-i-n merged commit 662a0a6 into a-r-m-i-n:master Feb 19, 2024
0 of 4 checks passed
@eliashaeussler eliashaeussler deleted the eliashaeussler-patch-1 branch February 19, 2024 14:31
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