Skip to content

[chore] exclude dev files from Composer dist archive - #371

Merged
khanzadimahdi merged 2 commits into
shetabit:masterfrom
alissn:UpdateGitAttribute
Sep 28, 2026
Merged

khanzadimahdi merged 2 commits into
shetabit:masterfrom
alissn:UpdateGitAttribute

Conversation

@alissn

@alissn alissn commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR updates .gitattributes to exclude development, CI, test, and documentation files from Composer dist archives.

Description

When the Package is installed via Composer, the downloaded package currently includes files that are not needed at runtime, such as:

  • GitHub workflows
  • tests
  • PHPUnit / PHPStan / PHPCS / Rector configs
  • Docker and Make files
  • contribution templates

This increases the package download size and adds unnecessary files to the vendor/ directory.

Runtime files such as src/, config/, resources/, composer.json, LICENSE.md, and README.md are intentionally kept.

@codecov-commenter

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@khanzadimahdi
khanzadimahdi merged commit 73f1e03 into shetabit:master Sep 28, 2026
11 checks passed
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.

3 participants