Do you need to put .gitignore in commercial WordPress plugins?

I just read this documentation Private or Commercial WordPress Plugins as Composer Dependencies | Roots

But there’s no mention if I should put .gitignore inside the plugin other than composer.json

Any opinions?

A WordPress plugin is typically/usually shipped as ZIP file with the bare minimum of files (PHP runtime, PHP files, assets, GPL license, README).
IMHO all plugin files of a commercial plugin should be committed.

Right, the reason I asked this because some premium plugin like WP Rocket and few other plugins have .gitignore file on their files.

Well, I would preserve all files that belong to a plugin. There are no downsides, right?

This topic was automatically closed after 42 days. New replies are no longer allowed.