specbee / robo-tooling
用于设置、构建、测试和部署 Drupal 项目的 Robo 命令。
3.0.3
2023-09-20 12:52 UTC
Requires
- consolidation/robo: ^4.0
- drush-ops/behat-drush-endpoint: ^9.4
- drush/drush: ^11
- grasmash/yaml-cli: ^3.0
- webflo/drupal-finder: ^1.2
Requires (Dev)
- ergebnis/composer-normalize: ^2.13
README
该 composer 包旨在通过 Robo 命令提供一个自动化层,用于设置、构建、测试和部署 Drupal 应用程序。
安装要求
- Lando
- Docker
- PHP >= 7.4
- Composer v2
创建新项目
该软件包预装了 Specbee 的 Drupal 快速启动包 https://github.com/SpecbeeLabs/drupal-starterkit
composer create-project specbee/drupal-starterkit:9.x-dev projname --no-interaction
添加到现有项目
要将该软件包添加到现有项目
composer require specbee/robo-tooling:1.x-dev
配置
- 如果尚未添加,请将
example.robo.yml
复制到根目录并重命名为robo.yml
- 根据您的需求更新
robo.yml
以更改配置。
完成后,运行 vendor/bin/robo init-repo
,这将
- 设置 Drush 别名
- 配置 Landofile
- 配置 Grumphp 以检查提交
用法
运行 lando start
启动运行应用程序的容器。
一旦 lando 容器启动,运行 lando 命令
lando robo setup -n
这将使用 robo.yml
中提到的 drupal.profile 安装配置的 Drupal 网站。之后,如果存在现有配置,则将导入并构建主题(如果存在)。
工具
该软件包提供了以下工具命令来自动化开发任务。
所有命令都可以在 lando 命名空间下访问。 lando robo <command>