Monorepo: don't optimize composer autoloading by default. (#48971)
This PR drops composer autoloader optimization for the WooCommerce plugin to speed up the build process. The autoloader still gets optimized in `plugins/woocommerce/bin/build-zip.sh` file.
This commit is contained in:
parent
4ff97e4915
commit
76b1bd4ae7
|
@ -56,12 +56,12 @@ jobs:
|
|||
bash bin/build-zip.sh
|
||||
|
||||
mkdir "$GITHUB_WORKSPACE/zips"
|
||||
cp "$GITHUB_WORKSPACE/plugins/woocommerce/woocommerce.zip" "$GITHUB_WORKSPACE/zips/woocommerce.zip"
|
||||
mv "$GITHUB_WORKSPACE/plugins/woocommerce/woocommerce.zip" "$GITHUB_WORKSPACE/zips/woocommerce.zip"
|
||||
cd "$GITHUB_WORKSPACE/zips"
|
||||
unzip -qq woocommerce.zip
|
||||
rm woocommerce.zip
|
||||
mv woocommerce woocommerce-dev
|
||||
zip -q -r "woocommerce-dev.zip" "woocommerce-dev/"
|
||||
zip -q -r -9 "woocommerce-dev.zip" "woocommerce-dev/"
|
||||
rm -fR "$GITHUB_WORKSPACE/zips/woocommerce-dev"
|
||||
|
||||
# Plugin data is passed as a JSON object.
|
||||
|
|
|
@ -66,13 +66,13 @@ jobs:
|
|||
|
||||
mkdir "$GITHUB_WORKSPACE/zips"
|
||||
mkdir -p "$GITHUB_WORKSPACE/unzips/woocommerce"
|
||||
cp "$GITHUB_WORKSPACE/plugins/woocommerce/woocommerce.zip" "$GITHUB_WORKSPACE/zips/woocommerce.zip"
|
||||
mv "$GITHUB_WORKSPACE/plugins/woocommerce/woocommerce.zip" "$GITHUB_WORKSPACE/zips/woocommerce.zip"
|
||||
cd "$GITHUB_WORKSPACE/zips"
|
||||
unzip -qq woocommerce.zip
|
||||
cp -r woocommerce "$GITHUB_WORKSPACE/unzips/woocommerce/woocommerce"
|
||||
rm woocommerce.zip
|
||||
mv woocommerce woocommerce-dev
|
||||
zip -q -r "woocommerce-dev.zip" "woocommerce-dev/"
|
||||
zip -q -r -9 "woocommerce-dev.zip" "woocommerce-dev/"
|
||||
rm -fR "$GITHUB_WORKSPACE/zips/woocommerce-dev"
|
||||
# Plugin data is passed as a JSON object.
|
||||
PLUGIN_DATA="{}"
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: dev
|
||||
|
||||
Build: speedup dependencies installation by disabling composer optimize autoloading by default.
|
|
@ -40,7 +40,6 @@
|
|||
"yoast/phpunit-polyfills": "^2.0"
|
||||
},
|
||||
"config": {
|
||||
"optimize-autoloader": true,
|
||||
"preferred-install": {
|
||||
"woocommerce/action-scheduler": "dist"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue