diff --git a/src/Handler.php b/src/Handler.php index ae127cc7645255560edcbde856fac4632313b08c..7b655d9932e08294ba2ee048045d9f49e62505cd 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -70,14 +70,18 @@ class Handler extends BaseHandler { // Directory where this plugin is being installed. $pluginRoot = $installationManager->getInstallPath($this->getPackage('lakedrops/drupal-development-environment')); - // Create contrib/custom dirs for modules, profiles and themes. + // Create contrib/custom dirs for modules, profiles, recipes and themes. foreach ([ $webRoot . '/modules', $webRoot . '/profiles', + $webRoot . '/recipes', $webRoot . '/themes', ] as $dir) { foreach (['contrib', 'custom'] as $subdir) { $path = $dir . '/' . $subdir; + if ($subdir === 'contrib') { + $this->gitIgnore($path); + } if (!$fs->exists($path)) { $fs->mkdir($path, 0775); } diff --git a/templates/tests/phpcs.files b/templates/tests/phpcs.files index 1efc94e10645ddfd4dd699cc6f83f644fa683851..1dbabc640868688a9ca72045b88dbdf53f150bc1 100644 --- a/templates/tests/phpcs.files +++ b/templates/tests/phpcs.files @@ -1,3 +1,4 @@ /var/www/html/web/modules/custom/ /var/www/html/web/profiles/custom/ +/var/www/html/web/recipes/custom/ /var/www/html/web/themes/custom/ diff --git a/templates/tests/phpunit.xml.dist b/templates/tests/phpunit.xml.dist index ee2050f85b6264c36aab90417b358166c7c655a8..097d681612fbdb6a0068b377fe5147bee938e125 100644 --- a/templates/tests/phpunit.xml.dist +++ b/templates/tests/phpunit.xml.dist @@ -61,6 +61,7 @@ <include> <directory>../web/modules/custom</directory> <directory>../web/profiles/custom</directory> + <directory>../web/recipes/custom</directory> <directory>../web/themes/custom</directory> {% for path in coverage %} <directory>{{ path }}</directory>