From 31bf4af68d6c193ee93e649ecfd22114af54c2b6 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 1 Apr 2023 11:26:35 +0100 Subject: [PATCH] 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. --- bin/build-configs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bin/build-configs b/bin/build-configs index b35c1ec..97dbd6d 100755 --- a/bin/build-configs +++ b/bin/build-configs @@ -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']); }