Skip to content

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

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

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@68ae732). Learn more about missing BASE report.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #368   +/-   ##
=========================================
  Coverage          ?   80.71%           
  Complexity        ?     1104           
=========================================
  Files             ?       66           
  Lines             ?     5662           
  Branches          ?        0           
=========================================
  Hits              ?     4570           
  Misses            ?     1092           
  Partials          ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@khanzadimahdi
khanzadimahdi merged commit 17eb1ec into shetabit:master Sep 28, 2026
7 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