Try reducing blocks build size (#43344)

* Try reducing blocks build size

* Add changefile(s) from automation for the following project(s): woocommerce

* Only set NODE_ENV if its not already defined

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
jonathansadowski 2024-01-08 11:33:49 -06:00 committed by GitHub
parent fa62e63037
commit ce3a38ac55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 0 deletions

View File

@ -1,27 +1,35 @@
.*
.*/
*.lock
*.map
*.md
*.zip
/bin/
/build/
/changelog/
/node_modules/
/patches/
/playwright-report/
/storybook/
/tests/
/e2e/
babel.config.js
blocks.ini
composer.*
contributors.html
docker-compose.yaml
Dockerfile
Gruntfile.js
global.d.ts
none
package-lock.json
package.json
packages/woocommerce-admin/docs
packages/woocommerce-blocks/docs
phpcs.xml
phpunit.xml
phpunit.xml.dist
postcss.config.js
project.json
README.md
renovate.json

View File

@ -18,7 +18,11 @@ find "$PROJECT_PATH/assets/css/." ! -name '.gitkeep' -type f -exec rm -f {} + &&
echo "Installing PHP and JS dependencies..."
pnpm install
echo "Running JS Build..."
if [ -z "${NODE_ENV}" ]; then
export NODE_ENV=production
fi
pnpm --filter='@woocommerce/plugin-woocommerce' build || exit "$?"
echo "Cleaning up PHP dependencies..."
composer install --no-dev || exit "$?"

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Comment: This PR affects build tooling and a change entry is not required.