Skip to content

Smaller package size by using export-ignore #862

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

Merged
merged 3 commits into from
Jun 6, 2025

Conversation

nreynis
Copy link
Contributor

@nreynis nreynis commented Apr 3, 2025

Description

The current dependency size is 44.8MB. Most of that weight shouldn't be in the user's vendor directory.

This PR adds a .gitattibutes file with export-ignore to keep distributed dependency size at bay.
See: https://php.watch/articles/composer-gitattributes

With this change, the dependency size drops to 1.13MB.

Fixes # (issue)

Checklist:

  • My CI is 🟢
  • I have covered by unit tests my new code (check build/coverage for coverage report)
  • I have updated the documentation to describe the changes
  • I have updated the changelog

@auto-assign auto-assign bot requested a review from Progi1984 April 3, 2025 11:22
@nreynis
Copy link
Contributor Author

nreynis commented Apr 3, 2025

@coveralls
Copy link

coveralls commented Apr 3, 2025

Coverage Status

coverage: 91.639%. remained the same
when pulling 12552dd on nreynis:lighter-export
into 47c269c on PHPOffice:master.

@Progi1984 Progi1984 modified the milestones: 1.2.0, 1.3.0 May 26, 2025
@Progi1984 Progi1984 modified the milestones: 1.3.0, 1.2.0 Jun 6, 2025
@Progi1984 Progi1984 merged commit b9cdcd4 into PHPOffice:master Jun 6, 2025
32 checks passed
@Progi1984
Copy link
Member

Thanks @nreynis for your contribution. It's embed in 1.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants