Skip to content

Add a gitattribute to reduce installation size#56

Merged
gulien merged 1 commit intogotenberg:mainfrom
pieterocp:add-gitattribute
Jan 10, 2025
Merged

Add a gitattribute to reduce installation size#56
gulien merged 1 commit intogotenberg:mainfrom
pieterocp:add-gitattribute

Conversation

@pieterocp
Copy link
Copy Markdown
Contributor

As a suggestion to reduce the size of the installed package, adding a .gitattributes with export-ignore's, makes it so that the default archive installed is smaller. In projects I am working on, being able to speed up installation speeds up CI a bit and the size of the vendor folder + the indexing of most modern editors.

If people do want to install the tests as a working example, this is still possible.

(was inspired after finding this article about it when making slight improvements to my companies internal packages - https://php.watch/articles/composer-gitattributes )

@gulien
Copy link
Copy Markdown
Contributor

gulien commented Jan 10, 2025

Thanks for this PR @pieterocp, I was not aware of such mecanism!

@gulien gulien merged commit 5b6c5ee into gotenberg:main Jan 10, 2025
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.

2 participants