Add start of theme

This commit is contained in:
Oliver Davies 2020-04-10 10:10:54 +01:00
parent 98bc7fd715
commit bea6553cd8
22 changed files with 714 additions and 5 deletions

View file

@ -2,6 +2,8 @@
set -e
theme_path="web/themes/custom/opdavies"
function run_command {
title=$1
command=$2

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e
cd web
symfony php ../vendor/bin/drush config-export -y

View file

@ -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

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -e
. $(dirname "$0")/common.sh
cd $theme_path
npm run development

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -e
. $(dirname "$0")/common.sh
cd $theme_path
npm run prod