From b0e0a733d6ae91e98076785be22e6105ae25f6b7 Mon Sep 17 00:00:00 2001 From: Christopher Allford <6451942+ObliviousHarmony@users.noreply.github.com> Date: Tue, 1 Oct 2024 10:32:24 -0700 Subject: [PATCH] WooCommerce Asset Build Aliases (#43433) --- .../changelog/43433-add-plugin-component-build-aliases | 4 ++++ plugins/woocommerce/package.json | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 plugins/woocommerce/changelog/43433-add-plugin-component-build-aliases diff --git a/plugins/woocommerce/changelog/43433-add-plugin-component-build-aliases b/plugins/woocommerce/changelog/43433-add-plugin-component-build-aliases new file mode 100644 index 00000000000..52cf7ac1f9b --- /dev/null +++ b/plugins/woocommerce/changelog/43433-add-plugin-component-build-aliases @@ -0,0 +1,4 @@ +Significance: patch +Type: dev +Comment: These are changes to build commands. + diff --git a/plugins/woocommerce/package.json b/plugins/woocommerce/package.json index a4f6172c0b6..d836ae9c82c 100644 --- a/plugins/woocommerce/package.json +++ b/plugins/woocommerce/package.json @@ -11,6 +11,10 @@ "license": "GPL-3.0+", "scripts": { "build": "pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" '/^build:project:.*$/'", + "build:admin": "pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"@woocommerce/admin-library...\" --filter=\"$npm_package_name\" '/^build:project:.*$/'", + "build:blocks": "pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"@woocommerce/block-library...\" --filter=\"$npm_package_name\" '/^build:project:.*$/'", + "build:classic-assets": "pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"@woocommerce/classic-assets...\" --filter=\"$npm_package_name\" '/^build:project:.*$/'", + "build:zip": "./bin/build-zip.sh", "build:project": "pnpm --if-present '/^build:project:.*$/'", "build:project:copy-assets:legacy": "wireit", "build:project:copy-assets:admin": "wireit", @@ -74,6 +78,9 @@ "test:unit:env:watch": "pnpm test:php:env:watch", "update-wp-env": "php ./tests/e2e-pw/bin/update-wp-env.php", "watch:build": "pnpm --if-present --workspace-concurrency=Infinity --filter=\"$npm_package_name...\" --parallel '/^watch:build:project:.*$/'", + "watch:build:admin": "pnpm --if-present --workspace-concurrency=Infinity --filter=\"@woocommerce/admin-library...\" --filter=\"$npm_package_name\" --parallel '/^watch:build:project:.*$/'", + "watch:build:blocks": "pnpm --if-present --workspace-concurrency=Infinity --filter=\"@woocommerce/block-library...\" --filter=\"$npm_package_name\" --parallel '/^watch:build:project:.*$/'", + "watch:build:classic-assets": "pnpm --if-present --workspace-concurrency=Infinity --filter=\"@woocommerce/classic-assets...\" --filter=\"$npm_package_name\" --parallel '/^watch:build:project:.*$/'", "watch:build:project": "pnpm --if-present run '/^watch:build:project:.*$/'", "watch:build:project:copy-assets": "wireit", "wp-env": "wp-env"