Monorepo: speedup.
This commit is contained in:
parent
49957200fc
commit
869164f606
|
@ -24,21 +24,16 @@ fi
|
||||||
# We running the optimization in background to speedup build process, with dev-environments in mind.
|
# We running the optimization in background to speedup build process, with dev-environments in mind.
|
||||||
# Building zips enforcing the optimization during the install process, so we are good around building releases as well.
|
# Building zips enforcing the optimization during the install process, so we are good around building releases as well.
|
||||||
output 3 "Updating autoloader classmaps..."
|
output 3 "Updating autoloader classmaps..."
|
||||||
composer dump-autoload --optimize --quiet &
|
composer dump-autoload --optimize --quiet &
|
||||||
output 2 "Done"
|
|
||||||
|
|
||||||
if [ -z "$SKIP_UPDATE_TEXTDOMAINS" ]; then
|
if [ -z "$SKIP_UPDATE_TEXTDOMAINS" ]; then
|
||||||
# Convert textdomains
|
# Convert textdomains
|
||||||
output 3 "Updating package PHP textdomains..."
|
output 3 "Updating package PHP textdomains..."
|
||||||
|
|
||||||
# Replace text domains within packages with woocommerce
|
# Replace text domains within packages with woocommerce
|
||||||
pnpm packages:fix:textdomain
|
node ./bin/package-update-textdomain.js
|
||||||
output 2 "Done!"
|
|
||||||
|
|
||||||
# output 3 "Updating package JS textdomains..."
|
|
||||||
# find ./packages/woocommerce-blocks \( -iname '*.js' -o -iname '*.json' \) -exec sed -i.bak -e "s/'woo-gutenberg-products-block'/'woocommerce'/g" -e "s/\"woo-gutenberg-products-block\"/\"woocommerce\"/g" {} \;
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Cleanup backup files
|
# Cleanup backup files
|
||||||
find ./packages -name "*.bak" -type f -delete
|
find ./packages -name "*.bak" -type f -delete &
|
||||||
output 2 "Done!"
|
output 2 "Done!"
|
||||||
|
|
|
@ -48,7 +48,6 @@
|
||||||
"lint:php:fix": "composer run-script phpcbf",
|
"lint:php:fix": "composer run-script phpcbf",
|
||||||
"make:collection": "pnpm exec wc-api-tests make:collection",
|
"make:collection": "pnpm exec wc-api-tests make:collection",
|
||||||
"makepot": "composer run-script makepot",
|
"makepot": "composer run-script makepot",
|
||||||
"packages:fix:textdomain": "node ./bin/package-update-textdomain.js",
|
|
||||||
"test": "pnpm test:unit",
|
"test": "pnpm test:unit",
|
||||||
"test:api": "pnpm test:e2e:default --project=api --workers 4",
|
"test:api": "pnpm test:e2e:default --project=api --workers 4",
|
||||||
"test:e2e": "pnpm test:e2e:default --project=ui",
|
"test:e2e": "pnpm test:e2e:default --project=ui",
|
||||||
|
|
Loading…
Reference in New Issue