Pregunta

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?

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top