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:
parent
fa62e63037
commit
ce3a38ac55
|
@ -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
|
||||
|
|
|
@ -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 "$?"
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: dev
|
||||
Comment: This PR affects build tooling and a change entry is not required.
|
||||
|
Loading…
Reference in New Issue