diff --git a/config/dist/chain/console-contribute.yml b/config/dist/chain/console-contribute.yml new file mode 100644 index 0000000..40f410c --- /dev/null +++ b/config/dist/chain/console-contribute.yml @@ -0,0 +1,23 @@ +# How to use +# console:contribute --drupal=/path/to/drupal-directory --code=/path/to/code-directory +command: + name: console:contribute + description: 'Download Drupal + Drupal Console to contribute.' +vars: + repository: drupal-composer/drupal-project:8.x-dev +commands: + - command: exec + arguments: + bin: composer create-project %{{repository}} %{{drupal}} --prefer-dist --no-progress --no-interaction --no-install + - command: exec + arguments: + bin: composer require drupal/console-develop --dev --working-dir=%{{drupal}} --no-update + - command: exec + arguments: + bin: composer install --working-dir=%{{drupal}} + - command: exec + arguments: + bin: drupal site:install standard --root=%{{drupal}} --db-type="sqlite" --no-interaction + - command: exec + arguments: + bin: drupal develop:contribute --code-directory=%{{code}} --root=%{{drupal}}