burst/drupal-distribution

该包最新版本(10.3.1)没有提供许可信息。

Burst Drupal 发行版。仅限内部使用。

10.3.1 2024-08-01 12:37 UTC

README

因为我们大量使用 Drupal 10.1,这使得我们的工作变得更加简单。

本发行版旨在减少我们项目中样板代码的数量。减少项目间的复制粘贴,更多重用相同的代码。

如何使用

创建一个 composer.json 文件,并确保它至少包含以下内容

{
  "type": "project",
  "minimum-stability": "dev",
  "prefer-stable": true,
  "repositories": [
    {
      "type": "composer",
      "url": "https://packages.drupal.org/8"
    }
  ],
  "require": {},
  "extra": {
    "installer-paths": {
      "web/core": [
        "type:drupal-core"
      ],
      "web/libraries/{$name}": [
        "type:drupal-library"
      ],
      "web/modules/contrib/{$name}": [
        "type:drupal-module"
      ],
      "web/profiles/contrib/{$vendor}-{$name}": [
        "type:drupal-profile"
      ],
      "web/themes/contrib/{$name}": [
        "type:drupal-theme"
      ],
      "drush/contrib/{$name}": [
        "type:drupal-drush"
      ]
    },
    "enable-patching": true,
    "drupal-scaffold": {
      "locations": {
        "web-root": "web"
      }
    },
    "composer-exit-on-patch-failure": true
  },
  "config": {
    "sort-packages": true,
    "discard-changes": true,
    "platform": {
      "php": "7.4.999",
      "ext-curl": "7.4.999",
      "ext-gd": "7.4.999"
    }
  }
}

注意以下事项

  • 不需要 drupal/core,它已经由 Burst 发行版所依赖。

然后,运行 composer require burst/drupal-distribution

现在,最重要的一步是将 /web/sites/default/settings.php 替换为以下内容

<?php

// This also includes settings.local.php and settings.ddev.php if these files exist.
require __DIR__ . '/../../profiles/contrib/burst-drupal-distribution/includes/settings.php';

Boom!这包括所有为 Platform.sh、Lando 以及未来可能的其他服务所需的所有配置。