Add start of theme
This commit is contained in:
parent
98bc7fd715
commit
bea6553cd8
22 changed files with 714 additions and 5 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
set -e
|
||||
|
||||
theme_path="web/themes/custom/opdavies"
|
||||
|
||||
function run_command {
|
||||
title=$1
|
||||
command=$2
|
||||
|
|
7
scripts/development/config-export.sh
Executable file
7
scripts/development/config-export.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
cd web
|
||||
|
||||
symfony php ../vendor/bin/drush config-export -y
|
|
@ -6,6 +6,10 @@ set -e
|
|||
|
||||
run_command "Install Composer dependencies" "symfony composer install"
|
||||
|
||||
cd web
|
||||
pushd $theme_path
|
||||
run_command "Install theme dependencies" "symfony run npm install"
|
||||
popd
|
||||
|
||||
pushd web
|
||||
run_command "Install Drupal" "symfony php ../vendor/bin/drush site-install -y --existing-config"
|
||||
popd
|
||||
|
|
9
scripts/development/theme-build-dev.sh
Executable file
9
scripts/development/theme-build-dev.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
. $(dirname "$0")/common.sh
|
||||
|
||||
cd $theme_path
|
||||
|
||||
npm run development
|
9
scripts/development/theme-build-prod.sh
Executable file
9
scripts/development/theme-build-prod.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
. $(dirname "$0")/common.sh
|
||||
|
||||
cd $theme_path
|
||||
|
||||
npm run prod
|
Loading…
Add table
Add a link
Reference in a new issue