Download the PHP package hardpixel/composer-janitor without Composer
On this page you can find all versions of the php package hardpixel/composer-janitor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hardpixel/composer-janitor
More information about hardpixel/composer-janitor
Files in hardpixel/composer-janitor
Package composer-janitor
Short Description A composer cleanup plugin, to remove tests and documentation to save space
License MIT
Informations about the package composer-janitor
Composer Janitor Plugin
Cleanup Composer packages to remove unneeded files and folders if you intend to keep you project dependencies in version control. The plugin removes files that belong to 4 default rule groups (docs, tests, system, wp) from all the project dependencies when you run composer install
or composer-update
. You can configure extra rule groups or disable default groups by adding options to the composer.json file.
Configure
You can configure Composer Janitor Plugin by adding a cleanup
key in your composer.json.
disable
: Disable default rule groups
rules
: Define custom rule groups
packages
: Define rules to specified packages
Below you can see an example configuration.
"config": {
"cleanup": {
"disable": ["system"],
"rules": {
"custom": [
".git*",
".idea",
".htaccess",
".editorconfig",
".phpstorm.meta.php",
".php_cs",
"*.iml",
"composer.lock",
"bower*"
]
},
"packages": {
"masterminds/html5": ["sami.php", "bin"],
"querypath/querypath": ["patches", "bin", "phar"],
"mustache/mustache": "vendor",
"pelago/emogrifier": "Configuration",
"wpackagist-plugin/piklist": "add-ons",
"wpackagist-plugin/polylang": "lingotek"
}
}
}