mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-13 05:26:56 +00:00
fix: allow for no docroot for Drupal projects
Some projects don't use a docroot/web/public directory so this needs be able to be set to `null`. As I can't do this with Twig's `is not defined` test, I'll need to remove the default `web` value and add it to the build.yaml file for the appropriate projects. If I can get this to work in the future, I'll re-add `web` as the default value as that's the default and most common option.
This commit is contained in:
parent
af7357b639
commit
31bf4af68d
|
@ -107,11 +107,6 @@ $app->command(
|
|||
}
|
||||
|
||||
if ('drupal-project' === Arr::get($configurationData, 'type')) {
|
||||
// Ensure a "docroot" value is set.
|
||||
if (null === Arr::get($configurationData, 'drupal.docroot')) {
|
||||
Arr::set($configurationData, 'drupal.docroot', 'web');
|
||||
}
|
||||
|
||||
// Add a Drupal version of phpunit.xml.dist.
|
||||
$filesToGenerate->push(['drupal-project/phpunit.xml.dist', 'phpunit.xml.dist']);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue