Skip to content

Commit

Permalink
Added little utility to build all Blockbase children (that have a bui…
Browse files Browse the repository at this point in the history
…ld step)
  • Loading branch information
pbking committed Jul 13, 2022
1 parent 5419c85 commit 04b7517
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions theme-batch-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ build-org-zip() {
echo
}

build-blockbase-child() {
THEME=${1//\/}
if grep -q "Template: blockbase" ./style.css; then
echo "building" $THEME;
npm run build
fi
}

command=$1
echo

Expand Down Expand Up @@ -157,6 +165,9 @@ for theme in */ ; do
"build-org-zip-all")
build-org-zip ${theme}
;;
"build-blockbase-children")
build-blockbase-child ${theme}
;;
"version-bump")
version-bump ${theme}
;;
Expand Down

0 comments on commit 04b7517

Please sign in to comment.