codefog / contao-haste

Haste is a collection of tools and classes to ease working with Contao
http://codefog.pl/extension/haste.html
MIT License
43 stars 24 forks source link

Use .gitattributes to exclude tests in production #165

Closed ameotoko closed 2 years ago

ameotoko commented 2 years ago

This closes #164 with the help of .gitattributes file.

Related resources:

fritzmg commented 2 years ago

👍

What about gulpfile.js, package.json etc., shouldn't they also be excluded from the dist archive? Not sure what the best practise is in this case.

ameotoko commented 2 years ago

To be honest, I don't know myself... This PR just solves the concrete issue – removing PHP namespaces and declarations from the dist, which are not used by end user, while still being indexed by an IDE.

aschempp commented 2 years ago

Thank you @ameotoko