bnomei / kirby3-feed

Generate a RSS/JSON-Feed and Sitemap from a Pages-Collection.
https://forum.getkirby.com/t/kirby3-feed-rss-json-sitemap/23574
MIT License
64 stars 7 forks source link

Add .gitattributes to remove dev files from downloaded package #33

Closed hdodov closed 3 years ago

hdodov commented 3 years ago

When the plugin is installed, a bunch of unnecessary dev files (like tests) are also included:

image

That's a waste because those files essentially do nothing in production. Read this reddit post for more info, but the essence is - use a .gitattributes file to ignore files from the final published package archive. Packagist also respects it. Here's how I did it in the Kirby Git plugin.

Please, make it so the downloaded package contains only mandatory files.