palantirnet/the-build

为Drupal项目提供的项目设置模板和Phing构建任务。

4.1.1 2024-08-28 20:30 UTC

README

此仓库包含Drupal项目的项目设置模板和可重用的Phing构建目标。

注意:如果您正在启动一个新项目,您可能需要寻找drupal-skeleton

使用Composer添加-the-build

$> composer require palantirnet/the-build

-build需要Composer 2.2.2或更高版本。

设置

将默认模板和Phing目标安装到您的项目中

$> vendor/bin/the-build-installer

这将触发一个交互式提示来配置您的基本构建属性,添加以下模板文件和目录

  • .circleci/
  • .the-build/
  • behat.yml
  • build.xml
  • drush/drushrc.php
  • drush/*.aliases.drushrc.php
  • config/
  • (web|docroot)/sites/default/settings.php
  • (web|docroot)/sites/default/settings.(host).php

这些文件应被检入到您的项目中。

通过编辑.the-build/build.yml来配置您的构建。您可以在defaults.yml中找到更多属性,并通过将它们复制到您的项目的属性文件中来覆盖默认值。

使用-the-build

日常命令

从配置重新安装Drupal站点

$> vendor/bin/phing install

重建settings.build.php配置,以及如果可用的话,样式指南(在调用install时自动运行)

$> vendor/bin/phing build

运行代码审查和测试

$> vendor/bin/phing test

其他命令

使用以下命令查看其他可用目标的列表

$> vendor/bin/phing -l

其他文档

版权所有 2016-2020 Palantir.net,Inc。