Move makepot to build-zip bash script

This commit is contained in:
roykho 2022-04-27 09:45:51 -07:00
parent 216317c557
commit cf783aca58
No known key found for this signature in database
GPG Key ID: 00D6C128DC6E0F71
2 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,8 @@ echo "Running JS Build..."
pnpm run build || exit "$?" pnpm run build || exit "$?"
echo "Cleaning up PHP dependencies..." echo "Cleaning up PHP dependencies..."
composer install --no-dev || exit "$?" composer install --no-dev || exit "$?"
echo "Run makepot..."
composer run makepot
echo "Syncing files..." echo "Syncing files..."
rsync -rc --exclude-from="$PROJECT_PATH/.distignore" "$PROJECT_PATH/" "$DEST_PATH/" --delete --delete-excluded rsync -rc --exclude-from="$PROJECT_PATH/.distignore" "$PROJECT_PATH/" "$DEST_PATH/" --delete --delete-excluded

View File

@ -14,7 +14,7 @@
}, },
"scripts": { "scripts": {
"preinstall": "npx only-allow pnpm", "preinstall": "npx only-allow pnpm",
"build": "WC_ADMIN_PHASE=core pnpm run build:feature-config && pnpm nx build woocommerce-admin && pnpm nx build woocommerce-legacy-assets && pnpm nx makepot woocommerce", "build": "WC_ADMIN_PHASE=core pnpm run build:feature-config && pnpm nx build woocommerce-admin && pnpm nx build woocommerce-legacy-assets",
"build:feature-config": "php bin/generate-feature-config.php", "build:feature-config": "php bin/generate-feature-config.php",
"build:zip": "./bin/build-zip.sh", "build:zip": "./bin/build-zip.sh",
"lint:js": "eslint assets/js --ext=js", "lint:js": "eslint assets/js --ext=js",