https://github.com/sdkiller/yii2-unbloat
Post-update cleanup for Yii2-Composer project
https://github.com/sdkiller/yii2-unbloat
Last synced: 11 days ago
JSON representation
Post-update cleanup for Yii2-Composer project
- Host: GitHub
- URL: https://github.com/sdkiller/yii2-unbloat
- Owner: SDKiller
- License: bsd-3-clause
- Created: 2014-08-19T05:24:58.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-23T02:05:13.000Z (over 10 years ago)
- Last Synced: 2025-02-16T20:19:10.059Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 172 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Warning! This project is not maintained any more!
=================================================As similar functionality was [introduced](https://github.com/francoispluchino/composer-asset-plugin/issues/40) by [François Pluchino](https://github.com/francoispluchino) in his excellent [Composer Asset Plugin](https://github.com/francoispluchino/composer-asset-plugin), I think I should not 'reinvent the wheel' any more.
For usage of Composer Asset Plugin for that purpose [see its docs](https://github.com/francoispluchino/composer-asset-plugin/blob/master/Resources/doc/index.md#use-the-ignore-files-manager-in-the-composer-scripts).
This repository is left only for the purpose to keep BC for several private projects and will be dropped in future.
Post-update cleanup for Yii2-Composer project
---------------------------------------------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.This is a `post-update-cmd` composer script to cleanup Yii2 project of not nesessary files.
Installation
------------```
composer.phar require --prefer-dist zyx/yii2-unbloat "*"
```TBD
Usage
-----TBD
Add the following to `composer.json` file in your project root:
```
...
"scripts": {
...
"post-update-cmd": [
"zyx\\unbloat\\Helper::postCmd"
]
...
},
"extra": {
...
"ignore": {
"twbs/bootstrap": "type::bower",
"swiftmailer/swiftmailer": [
"/.*",
"phpunit.xml.dist",
"doc",
"tests",
"notes"
]
}
...
}
...
```