liborm85 / composer-vendor-cleaner

Composer Vendor Cleaner removes unnecessary development files and directories from vendor directory.
MIT License
27 stars 3 forks source link

"dev-files": "composer.dev-files.json" and options #7

Closed glensc closed 1 year ago

glensc commented 1 year ago

I want to use external files for the lists but also set the match-case or remote-empty-dirs options.

How do i mix "dev-files": "composer.dev-files.json" and "config": { "dev-files": { "match-case": false, "remove-empty-dirs": false } }

glensc commented 1 year ago

also, what is the structure of composer.dev-files.json? can you add examples to both questions to readme?

glensc commented 1 year ago

I tried root level of external file:

I tried composer config section:

yet files are still cleaned with composer install

liborm85 commented 1 year ago

External json file have same format as in composer.json, example added to readme https://github.com/liborm85/composer-vendor-cleaner/commit/9afcc3429a276cb758608173391f3537c2e95451.

Config options match-case and remove-empty-dirs are in another part of composer.json, is in config attribute. Example is in readme.