yoanbernabeu / Airtable-Client-Bundle

Simple Client for Airtable API
MIT License
33 stars 12 forks source link

.gitattributes file added #9

Closed Spomky closed 3 years ago

Spomky commented 3 years ago

With this tiny file, listed files and folders are ignored when requiring the bundle using --prefer-dis. This means that the documentation, the tests and all other non-essential files are not cloned in production with the following benefits:

See this nice blog post for additional explaination. As mentioned in this article, you can see what will really be coned in production by executing git archive -o my-branch.zip HEAD. The result is a 13.6ko here with that file and 322ko without it. It may be useless in regards to the size of the bundle, but has significant impact as projects growth and number of daily download increase.

Side note: even if the LICENCE file is not essential, I usually keep it in production

yoanbernabeu commented 3 years ago

Cool ! Thanks for this !