visavi / cleanup
清理供应商目录
v1.5.2
2019-12-08 16:59 UTC
Requires
- php: >=5.4.0
README
清理composer供应商目录
它会清理任何测试、描述、文档、示例等。
- .git
- .github
- test
- tests
- travis
- demo
- example
- examples
- doc
- docs
- license
- changelog*
- changes*
- faq*
- contributing*
- history*
- upgrading*
- upgrade*
- readme*
- {,.}*.yml
- *.md
- *.xml
- *.txt
- *.dist
- *.neon
- .php_cs*
- .scrutinizer
- .gitignore
- .gitattributes
- .editorconfig
- .phpstorm.meta.php
- dockerfile
- composer.lock
安装
composer require visavi/cleanup
运行
./vendor/bin/cleanup
选项
--help (-h) - 显示帮助信息
--include (-i) - 包含新的规则模式
--exclude (-e) - 排除模式规则
--verbose (-v) - 增加消息的详细程度
--path (-p) - 在特定路径上查找
--dry (-d) - 运行而不实际删除
必须通过逗号传递参数列表
示例
./vendor/bin/cleanup -v --path symfony --include *.zip,*.rar --exclude doc,docs,test
许可证
该类是开源软件,根据MIT许可证授权。