braintree / braintree_php

Braintree PHP library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
546 stars 224 forks source link

Add .gitattributes to exclude unneeded files from dist zip archive #246

Closed pH-7 closed 5 years ago

pH-7 commented 5 years ago

Summary

A good idea is to exclude unneeded dev files from the final production zip archive file, which is downloaded by composer (unless --prefer -source is specified). Those files are only useful when working on the library itself.

If you are not familiar, further information about export-ignore can be found below:

Hope it helps

crookedneighbor commented 5 years ago

This seems reasonable to me. There are a few more files that are for dev only though:

.github/
Dockerfile
Makefile
Rakefile

I'd probably keep the CHANGELOG.md in. That and the README are sometimes valuable to inspect when pulling down a package.

pH-7 commented 5 years ago

Sure, makes sense @crookedneighbor. I updated the list :)