Skip to content
Snippets Groups Projects
build_gesso.sh 1.04 KiB
Newer Older
gesso_version="8.x-3.2"
git clone "https://github.com/forumone/gesso" "gesso"
git checkout $gesso_version
if [ -f "package.json" ]; then
  cp package.json gesso
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 gesso theme files."
echo "Running npm install ..."
npm install
echo "Done npm install."
echo "Symbolic linking source directory ..."
if [ -d "source" ]; then
  echo "Removing old source directory ..."
  rm -rf source
  echo "Done removing old source directory ..."
fi
ln --force --symbolic "../source" source
echo "Done symbolic linking source directory ..."

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
echo "Done running gulp build."