diff --git a/.cspell-project-words.txt b/.cspell-project-words.txt index 70ea630ca80da207ce3b72bdd8f6e203aa4b99b9..ece21c5b1a10fce9c54193f8d2fd0fa6d818e5bc 100644 --- a/.cspell-project-words.txt +++ b/.cspell-project-words.txt @@ -1,6 +1,7 @@ ahoyapi checkstyle cspellmodule +databasename eslintmodule lakedrops mariadbtest diff --git a/composer.json b/composer.json index a29ff3c4d244a8cf024c0ab36b8dbd09da840a6f..4aaabee977ad22a5b189869a17a7ad9c2ecd9e13 100644 --- a/composer.json +++ b/composer.json @@ -40,6 +40,7 @@ "composer-plugin-api": "^2", "dealerdirect/phpcodesniffer-composer-installer": "*", "drupal/coder": "*", + "drupal/config_inspector": "*", "drupal/core": "*", "drupal/core-composer-scaffold": "*", "drupal/devel": "*", 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>