gapple/drush-composercheck

当项目使用 composer 进行依赖管理时,防止执行某些 drush 命令

安装: 18

依赖者: 0

建议者: 0

安全: 0

星星: 1

观察者: 3

分支: 0

开放问题: 0

类型:drupal-drush

1.0.1 2017-06-02 18:12 UTC

This package is auto-updated.

Last update: 2024-09-04 11:19:32 UTC


README

当项目使用 composer 进行依赖管理时,防止执行某些 drush 命令

安装

全局

使用 Composer

  1. 需要 composer/installers

    composer global require composer/installers
  2. ~/.composer/composer.json 中配置 drush 插件的安装路径

    {
      "extra": {
        "installer-paths": {
          "../.drush/plugins/{$name}": ["type:drupal-drush"]
        }
      }
    }
  3. 需要 gapple/drush-composercheck

    composer global require gapple/drush-composercheck

手动安装

  1. 下载发行包
  2. 解压包到 ~/.drush/

项目

使用 Composer

  1. 在你的项目中需要 composer/installers

    composer require composer/installers
  2. 在你的项目的 composer.json 中配置 drush 插件的安装路径

    {
      "extra": {
        "installer-paths": {
          "drush/contrib/{$name}": ["type:drupal-drush"]
        }
      }
    }
  3. 在你的项目中需要 gapple/drush-composercheck

    composer require gapple/drush-composercheck

手动安装

  1. 下载发行包
  2. 将包解压到你的项目中的 drush 文件夹