Skip to content

Setup .gitattributes - in order to exclude tests and other dev files from dist - #98

Merged
smeghead merged 1 commit into
smeghead:mainfrom
sasezaki:gitattributes
Jan 12, 2026
Merged

smeghead merged 1 commit into
smeghead:mainfrom
sasezaki:gitattributes

Conversation

@sasezaki

Copy link
Copy Markdown
Contributor

also see https://madewithlove.com/blog/gitattributes/
With this PR, The archive targets other than src/ will be as follows:

git archive --format=tar HEAD | tar -tf - | grep -v src/
CHANGELOG.md
CREDITS
LICENSE
README.md
bin/
bin/php-class-diagram
composer.json
docs/
docs/hyper-media.html
docs/images/
docs/images/dogfood-model.png
docs/images/dogfood-package.png
docs/images/dogfood.svg
docs/images/output-division.png
docs/images/output-package-dep-loop.png
docs/images/output-package.png
docs/images/output.png

@smeghead smeghead added the enhancement New feature or request label Jan 12, 2026
@smeghead

Copy link
Copy Markdown
Owner

@sasezaki
Thanks a lot for this PR!
This is a nice improvement for keeping the distributed package clean and focused for users.

@smeghead
smeghead merged commit 964306a into smeghead:main Jan 12, 2026
5 checks passed
@sasezaki
sasezaki deleted the gitattributes branch January 12, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants