hardpixel/composer-janitor 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

hardpixel/composer-janitor

Composer 安装命令:

composer require hardpixel/composer-janitor

包简介

A composer cleanup plugin, to remove tests and documentation to save space

README 文档

README

Cleanup Composer packages to remove unneeded files and folders if you intend to keep you project dependencies in version control. The plugin removes files that belong to 4 default rule groups (docs, tests, system, wp) from all the project dependencies when you run composer install or composer-update. You can configure extra rule groups or disable default groups by adding options to the composer.json file.

Configure

You can configure Composer Janitor Plugin by adding a cleanup key in your composer.json.

disable : Disable default rule groups
rules : Define custom rule groups
packages : Define rules to specified packages

Below you can see an example configuration.

"config": {
  "cleanup": {
    "disable": ["system"],
    "rules": {
      "custom": [
        ".git*",
        ".idea",
        ".htaccess",
        ".editorconfig",
        ".phpstorm.meta.php",
        ".php_cs",
        "*.iml",
        "composer.lock",
        "bower*"
      ]
    },
    "packages": {
      "masterminds/html5": ["sami.php", "bin"],
      "querypath/querypath": ["patches", "bin", "phar"],
      "mustache/mustache": "vendor",
      "pelago/emogrifier": "Configuration",
      "wpackagist-plugin/piklist": "add-ons",
      "wpackagist-plugin/polylang": "lingotek"
    }
  }
}

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-11-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固