Skip to content
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

Add a .gitattributes to clean up vendor bundles #359

Open
williamdes opened this issue Dec 22, 2021 · 2 comments
Open

Add a .gitattributes to clean up vendor bundles #359

williamdes opened this issue Dec 22, 2021 · 2 comments

Comments

@williamdes
Copy link

There is quite a bunch of useless files that end up in production servers and workstations.
Please add a .gitattributes file, example: https://github.com/code-lts/doctum/blob/main/.gitattributes

bash-5.1# tree vendor/eluceo/
vendor/eluceo/
└── ical
    ├── Dockerfile
    ├── LICENSE
    ├── Makefile
    ├── composer.json
    ├── composer.lock
    ├── couscous.yml
    ├── dangerfile.js
    ├── infection.json
    ├── package.json
    ├── rulesets.xml
    ├── src (removed childs in this tree)
    └── yarn.lock

14 directories, 73 files
@navarr
Copy link
Contributor

navarr commented Dec 27, 2021

Is it better to use .gitattributes or composer's archive.exclude here?

Or both?

@williamdes
Copy link
Author

Is it better to use .gitattributes or composer's archive.exclude here?

Or both?

For having used both previous I would really recommend gitattributes
This will reflect on the git archive command

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

No branches or pull requests

2 participants