承接 mbrowniebytes/yii2-clean-vendors 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mbrowniebytes/yii2-clean-vendors

Composer 安装命令:

composer require mbrowniebytes/yii2-clean-vendors

包简介

Clean composer vendor/ directory by removing docs, tests, gits, etc

README 文档

README

This extension removes docs, tests, gits, etc from composer's vendor/ directory

It is based on barryvdh/composer-cleanup-plugin

The format of the rules and the removal logic have been copied.

The main changes are:

  • Callable as a Yii2 command
  • Provides progress feedback
  • Default rule added

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require mbrowniebytes/yii2-clean-vendors:dev-master

or add

"mbrowniebytes/yii2-clean-vendors": "dev-master"

to the require section of your composer.json.

Usage

To use this extension, add the following code in your application configuration (console.php):

'controllerMap' => [
    'clean-vendors' => [
        'class' => 'mbrowniebytes\yii2cleanvendors\CleanVendorsController',
    ],
],

Then call the extension from the command line

/path/yii> php yii clean-vendors
Checking vendor/ to remove docs, gits, tests, etc ..
Checking 56 vendor packages ..
Done. Scanned 25 vendor packages, cleaned 10 files/dirs

or add the extension to the composer scripts section to always clean vendors

    "scripts": {
		"post-update-cmd": [
			"php yii clean-vendors"
		]
    },

Additional arguments

-dry-run	do not delete anything
-verbose	echo rules being run, dir/file being deleted
-silent		do not echo anything

统计信息

  • 总下载量: 1.41k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-22