Skip to content
Snippets Groups Projects
build_gesso.sh 749 B
Newer Older
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