zyx/yii2-unbloat

Post-update cleanup for Yii2-Composer project

Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2014-10-23 02:05 UTC

This package is not auto-updated.

Last update: 2024-04-23 01:19:26 UTC


README

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.

For usage of Composer Asset Plugin for that purpose see its docs.

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"
            ]
        }
        ...
    }
    ...