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."