Rename theme commands
This commit is contained in:
parent
f21b61665c
commit
f42aaab862
|
@ -1,13 +1,18 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
## Description: Helper commands for the for theme
|
## Description: Helper commands for the for theme
|
||||||
## Usage: theme development|install|production|ssh|watch
|
## Usage: theme build|dev|install|ssh|watch
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
THEME_PATH="/var/www/html/$DDEV_DOCROOT/themes/custom/opdavies"
|
THEME_PATH="/var/www/html/$DDEV_DOCROOT/themes/custom/opdavies"
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
|
build|prod|production)
|
||||||
|
ddev theme install
|
||||||
|
ddev exec -d $THEME_PATH npm run production
|
||||||
|
;;
|
||||||
|
|
||||||
dev|development)
|
dev|development)
|
||||||
ddev theme install
|
ddev theme install
|
||||||
ddev exec -d $THEME_PATH npm run development
|
ddev exec -d $THEME_PATH npm run development
|
||||||
|
@ -17,11 +22,6 @@ case $1 in
|
||||||
ddev exec -d $THEME_PATH npm ci
|
ddev exec -d $THEME_PATH npm ci
|
||||||
;;
|
;;
|
||||||
|
|
||||||
prod|production)
|
|
||||||
ddev theme install
|
|
||||||
ddev exec -d $THEME_PATH npm run production
|
|
||||||
;;
|
|
||||||
|
|
||||||
ssh)
|
ssh)
|
||||||
ddev ssh -d $THEME_PATH
|
ddev ssh -d $THEME_PATH
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue