dg / composer-cleaner

Victor The Cleaner: removes unnecessary files from vendor directory
https://nette.org
134 stars 19 forks source link

Allow cleaner to be installed and use like a normal composer pkg #7

Closed barchard closed 7 years ago

barchard commented 7 years ago

You can then simply run php vendor/bin/composer-cleaner --test which can then be run as part of a standard deploy procedure. Namespaced as DGComposer to avoid confusion and affiliation with Composer itself.

A second set of eyes and some testing would be great here. Thanks.

dg commented 7 years ago

I'm thinking that it might react to events https://getcomposer.org/doc/articles/scripts.md

barchard commented 7 years ago

That's a great idea regarding events. pre-file-download? post-package-update + post-package-install?