From 825e54f0cd58bd26b69d192742d74e146c62162b Mon Sep 17 00:00:00 2001
From: ebremner <ebremner@uwaterloo.ca>
Date: Wed, 13 May 2020 15:13:46 -0400
Subject: [PATCH] ISTWCMS-3759: updating build gesso script to move packages
 and gulpfile

---
 build_gesso.sh | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/build_gesso.sh b/build_gesso.sh
index 4b6ed7f0..5c04d5b1 100755
--- a/build_gesso.sh
+++ b/build_gesso.sh
@@ -4,7 +4,17 @@ git clone "https://github.com/forumone/gesso" "gesso"
 cd gesso
 git checkout $gesso_version
 cd ..
-ln -s "source" "gesso/source"
+
+if [ -f "gulpfile.js" ]; then
+  mv gulpfile.js gesso
+fi
+
+if [ -f "packages.json" ]; then
+  mv packages.json gesso
+fi
+
+ln -s "gesso/source" "source"
+
 echo "Removing Gesso files"
 rm gesso.layouts.yml
 rm gesso.info.yml
@@ -16,6 +26,7 @@ rm -rf templates
 echo "Done removing gesso theme files."
 
 echo "Running npm install ..."
+cd gesso
 npm install
 echo "Done npm install."
 
-- 
GitLab