From a18c648cb4b1ab55b97e10ab2b980fe0c429d323 Mon Sep 17 00:00:00 2001 From: ebremner <ebremner@uwaterloo.ca> Date: Thu, 5 Dec 2019 09:32:17 -0500 Subject: [PATCH] ISTWCMS-3452: updating build gesso script --- build_gesso.sh | 47 +++++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 24 deletions(-) mode change 100644 => 100755 build_gesso.sh diff --git a/build_gesso.sh b/build_gesso.sh old mode 100644 new mode 100755 index c619f8e9..b5d57303 --- a/build_gesso.sh +++ b/build_gesso.sh @@ -1,24 +1,23 @@ -uw_wcms_gesso_root_path=${1:-/var/www/html} -git clone "https://github.com/forumone/gesso" "$uw_wcms_gesso_root_path/uw_wcms_gesso/gesso" -cd "$uw_wcms_gesso_root_path/uw_wcms_gesso/gesso" -rm -rf "$uw_wcms_gesso_root_path/uw_wcms_gesso/gesso/source" -ln -s "$uw_wcms_gesso_root_path/uw_wcms_gesso/source" -# Adding symbolic link to source, as gesso_helper module hard-codes the twig_functions to add -# to "Themepath/SORUCE/..." - -echo "Removing Gesso files" -rm gesso.layouts.yml -rm gesso.info.yml -rm gesso.libraries.yml -rm gesso.breakpoints.yml -rm Dockerfile -rm screenshot.png -rm -rf templates -echo "Done removing gess theme files." - -echo "Running npm install..." -npm install -echo "Done." - -echo "Running gulp build..." -gulp build +uw_wcms_gesso_root_path=${1:-/var/www/html} +git clone "https://github.com/forumone/gesso" "gesso" +cd gesso +rm -rf "$uw_wcms_gesso_root_path/uw_wcms_gesso/gesso/source" +ln -s "$uw_wcms_gesso_root_path/uw_wcms_gesso/source" + +echo "Removing Gesso files" +rm gesso.layouts.yml +rm gesso.info.yml +rm gesso.libraries.yml +rm gesso.breakpoints.yml +rm Dockerfile +rm screenshot.png +rm -rf templates +echo "Done removing gess theme files." + +echo "Running npm install ..." +npm install +echo "Done npm install." + +echo "Running gulp build ..." +gulp build +echo "Done running gulp build." \ No newline at end of file -- GitLab