From f42aaab862a6c0e6e6c8f5f018c21bcb145952e6 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 29 Oct 2020 12:12:46 +0000 Subject: [PATCH] Rename theme commands --- .ddev/commands/host/theme | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.ddev/commands/host/theme b/.ddev/commands/host/theme index beb1bed..6cc5fa4 100755 --- a/.ddev/commands/host/theme +++ b/.ddev/commands/host/theme @@ -1,13 +1,18 @@ #!/usr/bin/env bash ## Description: Helper commands for the for theme -## Usage: theme development|install|production|ssh|watch +## Usage: theme build|dev|install|ssh|watch set -e THEME_PATH="/var/www/html/$DDEV_DOCROOT/themes/custom/opdavies" case $1 in + build|prod|production) + ddev theme install + ddev exec -d $THEME_PATH npm run production + ;; + dev|development) ddev theme install ddev exec -d $THEME_PATH npm run development @@ -17,11 +22,6 @@ case $1 in ddev exec -d $THEME_PATH npm ci ;; - prod|production) - ddev theme install - ddev exec -d $THEME_PATH npm run production - ;; - ssh) ddev ssh -d $THEME_PATH ;;