alareis / composer-cleanup
Installs: 294
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:composer-plugin
Requires
- composer-plugin-api: ^1.0|^2.0
- ext-json: *
Requires (Dev)
- composer/composer: ^1.0|^2.0
README
Delete unnecessary file from the vendor dir. Based on composer-cleanup-plugin by barryvdh.
Note: This package is still experimental, usage in production is not recommended.
Install
Require this package in your composer.json:
composer global require alareis/composer-cleanup
Usage
This plugin will work automatically on any packages installed as dist
. Therefore, if you are using it to build a package archive, simply run composer install
with the --prefer-dist
option.
Configuration
You can add custom rules in config section of composer file, like this:
"config": {
"cleanup": {
"bower-asset/moment-timezone" : [
"data/unpacked"
]
},
},
What does it do?
For every installed or updated package in the default list, in general:
- Remove documentation, such as README files, docs folders, etc.
- Remove tests, PHPUnit configs, and other build/CI configuration.
- Remove bower ignored files