浏览代码

Merge pull request #3883 from Automattic/add/bcb-all-children-build-script

Add/bcb all children build script
Ben Dwyer 4 年之前
父节点
当前提交
2b1666b74f

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

@@ -35,7 +35,9 @@
   "scripts": {
   "scripts": {
     "start": "chokidar \"sass/**/*.scss\" -c \"npm run build\" --initial",
     "start": "chokidar \"sass/**/*.scss\" -c \"npm run build\" --initial",
     "start:child": "run-p start \"build:child -- {@} watch\" --",
     "start:child": "run-p start \"build:child -- {@} watch\" --",
+    "start:all": "chokidar \"sass/**/*.scss\" \"experimental-theme.json\" -c \"npm run build:all\" --initial",
     "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": "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": "npm run build && sh ./rebuild-child-themes.sh"
   }
   }
 }
 }

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

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

+ 4 - 1
mayland-blocks/experimental-theme.json

@@ -62,9 +62,12 @@
 			"button": {
 			"button": {
 				"border": {
 				"border": {
 					"color": "var(--wp--custom--button--color--text)",
 					"color": "var(--wp--custom--button--color--text)",
+					"hoverColor": "transparent",
 					"radius": "4px",
 					"radius": "4px",
 					"style": "solid",
 					"style": "solid",
-					"width": "0"
+					"hoverStyle": "solid",
+					"width": "0",
+					"hoverWidth": "0"
 				},
 				},
 				"color": {
 				"color": {
 					"background": "var(--wp--custom--color--secondary)",
 					"background": "var(--wp--custom--color--secondary)",

+ 4 - 1
seedlet-blocks/experimental-theme.json

@@ -100,9 +100,12 @@
 			"button": {
 			"button": {
 				"border": {
 				"border": {
 					"color": "var(--wp--custom--button--color--text)",
 					"color": "var(--wp--custom--button--color--text)",
+					"hoverColor": "transparent",
 					"radius": "4px",
 					"radius": "4px",
 					"style": "solid",
 					"style": "solid",
-					"width": "0"
+					"hoverStyle": "solid",
+					"width": "0",
+					"hoverWidth": "0"
 				},
 				},
 				"color": {
 				"color": {
 					"background": "var(--wp--custom--color--secondary)",
 					"background": "var(--wp--custom--color--secondary)",