Merge pull request #32943 from woocommerce/update/bash-zip

Update commands to use Nx
This commit is contained in:
jonathansadowski 2022-05-10 10:54:11 -05:00 committed by GitHub
commit 4c707a27d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -11,13 +11,13 @@ mkdir -p "$DEST_PATH"
echo "Installing PHP and JS dependencies..."
pnpm install
composer install || exit "$?"
pnpm nx composer-install woocommerce || exit "$?"
echo "Running JS Build..."
pnpm run build || exit "$?"
pnpm nx build woocommerce || exit "$?"
echo "Cleaning up PHP dependencies..."
composer install --no-dev || exit "$?"
pnpm nx composer-install-no-dev woocommerce || exit "$?"
echo "Run makepot..."
composer run-script makepot || exit "$?"
pnpm nx makepot woocommerce || exit "$?"
echo "Syncing files..."
rsync -rc --exclude-from="$PROJECT_PATH/.distignore" "$PROJECT_PATH/" "$DEST_PATH/" --delete --delete-excluded

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Updating scripts to use pnpm/Nx commands