2017 © Pedro PelĂĄez
 

yii2-extension yii2-unbloat

Post-update cleanup for Yii2-Composer project

image

zyx/yii2-unbloat

Post-update cleanup for Yii2-Composer project

  • Thursday, October 23, 2014
  • by zyx
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Warning! This project is not maintained any more!

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)

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., (*4)

This is a post-update-cmd composer script to cleanup Yii2 project of not nesessary files., (*5)

Installation

composer.phar require --prefer-dist zyx/yii2-unbloat "*"

TBD, (*6)

Usage

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

The Versions

23/10 2014

dev-master

9999999-dev

Post-update cleanup for Yii2-Composer project

  Sources   Download

BSD-3-Clause

The Requires

 

by Serge Postrash aka SDKiller

composer yii2