Ver Fonte

add a script to build all BCB children

Jason Crist há 4 anos atrás
pai
commit
29ed9e9e94

+ 2 - 1
blank-canvas-blocks/package.json

@@ -36,6 +36,7 @@
     "start": "chokidar \"sass/**/*.scss\" -c \"npm run build\" --initial",
     "start:child": "run-p start \"build:child -- {@} watch\" --",
     "build": "node-sass --importer node_modules/node-sass-package-importer/dist/cli.js sass/ponyfill.scss assets/ponyfill.css --output-style expanded --indent-type tab --indent-width 1 --source-map true",
-    "build:child": "node build.js"
+    "build:child": "node build.js",
+    "build:all-children": "sh ./rebuild-child-themes.sh"
   }
 }

+ 11 - 0
blank-canvas-blocks/rebuild-child-themes.sh

@@ -0,0 +1,11 @@
+#!/bin/bash
+
+declare -a ChildThemes=( "mayland-blocks" "seedlet-blocks" "quadrat" )
+
+for child in ${ChildThemes[@]}; do
+	cd '../'${child}
+	echo 'Rebulding '${child}
+	npm install
+	npm run build
+done
+