0

I have composer library hosted as a package on Packagist through GitHub. The repository includes a directory named sample with some samples on how to use the code and this directory is really not needed when using the package.

Is there a way to have this directory ignored when you do composer update/install?

Charles
  • 50,943
  • 13
  • 104
  • 142
Svish
  • 152,914
  • 173
  • 462
  • 620

1 Answers1

0

You technically can using the .gitattributes and the export-ignore directive. See http://git-scm.com/book/ch7-2.html#Exporting-Your-Repository for more details.

Seldaek
  • 40,986
  • 9
  • 97
  • 77