Cavalcade icon indicating copy to clipboard operation
Cavalcade copied to clipboard

Add `.gitattributes` file to exclude files not needed in composer installs.

Open peterwilsoncc opened this issue 5 years ago • 1 comments

The following files can be excluded from composer installs:

  • phpunit config
  • phpcs config
  • travis config
  • docs directory
  • tests directory

It sure would be dandy if these were listed in a .gitattributes file with the export-ignore flag to avoid putting test code on public servers.

Note: this applies to other HM projects too but I'm not going to create dozens of issues because that would be more than a little passive aggressive.

peterwilsoncc avatar May 21 '20 00:05 peterwilsoncc

Good idea 👍 We could potentially use archive.ignore in composer.json instead, but I think the gitattributes probably makes more sense.

rmccue avatar May 21 '20 10:05 rmccue