Monorepo: cleanup.
This commit is contained in:
parent
6904baaa97
commit
14687acccc
|
@ -15,22 +15,12 @@ output() {
|
|||
echo "$(tput setaf "$1")$2$(tput sgr0)"
|
||||
}
|
||||
|
||||
if [ ! -d "packages/" ]; then
|
||||
output 1 "./packages doesn't exist!"
|
||||
output 1 "run \"composer install\" before proceed."
|
||||
fi
|
||||
|
||||
# Autoloader optimization is forced to prevent OOM fatal errors in JetPack Autoloader.
|
||||
# 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.
|
||||
output 3 "Generating optimized autoloaders"
|
||||
composer dump-autoload --optimize --quiet &
|
||||
|
||||
# Replace translation domains within 'packages' directory.
|
||||
# Cleanup leftover backup files (e.g. sed used to update translation domains).
|
||||
output 3 "Updating translation domains in 'packages' directory"
|
||||
node ./bin/package-update-textdomain.js &
|
||||
|
||||
# find ./packages -name "*.bak" -type f -delete &
|
||||
|
||||
output 2 "Done!"
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
"build": "pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" '/^build:project:.*$/'",
|
||||
"build:project": "pnpm --if-present '/^build:project:.*$/'",
|
||||
"build:project:copy-assets": "wireit",
|
||||
"build:project:actualize-translation-domains": "node ./bin/package-update-textdomain.js",
|
||||
"build:zip": "./bin/build-zip.sh",
|
||||
"changelog": "XDEBUG_MODE=off composer install --quiet && composer exec -- changelogger",
|
||||
"docker:down": "pnpm exec wc-e2e docker:down",
|
||||
|
|
Loading…
Reference in New Issue