Skip to content

Instantly share code, notes, and snippets.

@camoa
Last active August 28, 2024 05:39
Show Gist options
  • Select an option

  • Save camoa/eb327424ecd4d867ffec55ff8e5e4b67 to your computer and use it in GitHub Desktop.

Select an option

Save camoa/eb327424ecd4d867ffec55ff8e5e4b67 to your computer and use it in GitHub Desktop.
Script to compile assets for theme's
#!/bin/bash
#locate the script in the themes folder
cd docroot/themes/custom
themes=$(find . -type d -maxdepth 1)
for theme in "${themes[@]}"; do
echo "Checking theme $theme\n"
if [ ! -e "$theme/gulpfile.js" ];then
cd $theme
gulp build
cd ..
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment