Skip to content
Snippets Groups Projects
build_gesso.sh 802 B
Newer Older
uw_wcms_gesso_root_path=${1:-/var/www/html}
gesso_version="8.x-3.2"
git clone "https://github.com/forumone/gesso" "gesso"
cd gesso
git checkout $gesso_version
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 "Removing style lint config and replacing with UW config ..."
rm .stylelintrc.yml
cp ../.stylelintrc.yml .
echo "Done removing style lint config and replacing with UW config"

echo "Running gulp build ..."
gulp build