@@ -81,15 +81,13 @@ setup() {
8181 # @todo Do this in a dockerfile.
8282 compose exec drupal sh -c ' apt update && apt --yes install git'
8383
84- COMPOSER=composer.lenient.json composer init --no-interaction
85- COMPOSER=composer.lenient.json composer config --no-plugins allow-plugins.mglaman/composer-drupal-lenient true
86- COMPOSER=composer.lenient.json composer require mglaman/composer-drupal-lenient
87- # COMPOSER=composer.lenient.json rm composer.lenient.*
88-
8984 # Allow all plugins to run.
9085 composer --no-plugins config allow-plugins true
86+ composer --no-plugins config minimum-stability dev
9187
92- composer config minimum-stability dev
88+ composer --no-plugins config extra.drupal-lenient.allow-all --json true
89+ # composer --no-plugins config extra.drupal-lenient.allowed-list --json '[ "drupal/coc_forms_auto_export", "drupal/webform_node_element" ]'
90+ composer require mglaman/composer-drupal-lenient --with-all-dependencies
9391
9492 # --------------------------------------------------------------------------------------------------------------------
9593 # We need to install dev requirements from our module, so we use
@@ -103,21 +101,23 @@ setup() {
103101 # Install wikimedia/composer-merge-plugin without any configuration
104102 composer require wikimedia/composer-merge-plugin --with-all-dependencies
105103 # Patch to make COMPOSER_IGNORE_PLATFORM_REQS=1 have effect
104+ # https://github.com/wikimedia/composer-merge-plugin/pull/253
106105 shell sh -c ' cd vendor/wikimedia/composer-merge-plugin/ && curl https://patch-diff.githubusercontent.com/raw/wikimedia/composer-merge-plugin/pull/253.diff | patch --strip=1'
107106
108107 # Configure wikimedia/composer-merge-plugin
109108 composer --no-plugins config extra.merge-plugin.include " $module_path /composer.json"
110109 # Use --json to actually set a boolean value (rather that a string value, e.g. "true")
111110 composer --no-plugins config extra.merge-plugin.merge-extra --json true
112111 composer --no-plugins config extra.merge-plugin.merge-extra-deep --json true
112+
113113 composer update
114114 # Our module and its dev requirements are now installed.
115115 # --------------------------------------------------------------------------------------------------------------------
116116
117117 # Reset Drupal installation
118118 compose exec drupal sh -c ' find . -name .ht.sqlite -ls -delete; rm web/sites/default/settings.php' || true
119119 # Install a minimal Drupal site.
120- drush --yes site:install --db-url=' sqlite://sites/default/files/.ht.sqlite?module=sqlite' minimal
120+ drush --yes site:install --db-url=' sqlite://sites/default/files/.ht.sqlite?module=sqlite' minimal -vvv
121121
122122 # Uncomment this line if you need to debug
123123 # shell bash
0 commit comments