Skip to content

Update .gitattributes to exclude dev files from composer dist#618

Open
williamdes wants to merge 1 commit into
HubSpot:masterfrom
williamdes:williamdes/gitattributes-export-ignore
Open

Update .gitattributes to exclude dev files from composer dist#618
williamdes wants to merge 1 commit into
HubSpot:masterfrom
williamdes:williamdes/gitattributes-export-ignore

Conversation

@williamdes
Copy link
Copy Markdown

This avoids shipping dev/tooling files in the composer dist that aren't needed at runtime.

Last .gitattributes update was none. The files below have been added or modified since, and are still included in the composer dist:

  • /tests/ export-ignore — last touched in 6319326 2026-05-11
  • /.github/ export-ignore — last touched in 32e8839 2026-02-20
  • /.php-cs-fixer.php export-ignore — last touched in 5750de5 2022-02-15
  • /.gitattributes export-ignore — last touched in new
  • /.gitignore export-ignore — last touched in new

Background reading: https://blog.madewithlove.be/post/gitattributes/

This avoids shipping dev/tooling files in the composer dist that aren't needed at runtime.

Last `.gitattributes` update was none. The files below have been added or modified since, and are still included in the composer dist:
- `/tests/ export-ignore` — last touched in 6319326 2026-05-11
- `/.github/ export-ignore` — last touched in 32e8839 2026-02-20
- `/.php-cs-fixer.php export-ignore` — last touched in 5750de5 2022-02-15
- `/.gitattributes export-ignore` — last touched in new
- `/.gitignore export-ignore` — last touched in new

Background reading: https://blog.madewithlove.be/post/gitattributes/

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

1 participant