Skip to content

Commit

Permalink
Simplify 'xb-setup' command with a 'composer' shell alias.
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisCarden committed Jan 29, 2025
1 parent 0db51ef commit f7014dd
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions commands/host/xb-setup
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

cd "$(dirname "$0")" || exit
cd ../../../
set -e

# Route Composer commands through DDEV.
alias composer="ddev composer"

# Flag-handling.
while :; do
Expand Down Expand Up @@ -49,24 +53,23 @@ git clone \
web/modules/contrib/experience_builder

# Require Drush, but don't install yet for performance reasons.
ddev composer \
require \
composer require \
--no-install \
--no-interaction \
drush/drush

# Require the Experience Builder module. Still don't install.
ddev composer config \
composer config \
repositories.xb \
path \
web/modules/contrib/experience_builder
ddev composer require \
composer require \
--no-install \
--no-interaction \
drupal/experience_builder

# Require dev dependencies. NOW install.
ddev composer require \
composer require \
--dev \
--update-with-all-dependencies \
--no-interaction \
Expand Down

0 comments on commit f7014dd

Please sign in to comment.