dev-master
9999999-devPost-update cleanup for Yii2-Composer project
BSD-3-Clause
The Requires
by Serge Postrash aka SDKiller
composer yii2
Post-update cleanup for Yii2-Composer project
As similar functionality was introduced by François Pluchino in his excellent Composer Asset Plugin, I think I should not 'reinvent the wheel' any more., (*1)
For usage of Composer Asset Plugin for that purpose see its docs., (*2)
This repository is left only for the purpose to keep BC for several private projects and will be dropped in future., (*3)
Have you suffered from tons of not nesessary for you in production files (like docs
, tests
, etc.) installed by Composer with almost every package?
Unfortunately Composer has no 'ignore' section in composer.json
(unlike Bower in bower.json
) to exclude some files and folders., (*4)
This is a post-update-cmd
composer script to cleanup Yii2 project of not nesessary files., (*5)
composer.phar require --prefer-dist zyx/yii2-unbloat "*"
TBD, (*6)
TBD, (*7)
Add the following to composer.json
file in your project root:, (*8)
... "scripts": { ... "post-update-cmd": [ "zyx\\unbloat\\Helper::postCmd" ] ... }, "extra": { ... "ignore": { "twbs/bootstrap": "type::bower", "swiftmailer/swiftmailer": [ "/.*", "phpunit.xml.dist", "doc", "tests", "notes" ] } ... } ...
Post-update cleanup for Yii2-Composer project
BSD-3-Clause
composer yii2