Make core build scripts more intuitive. 'build' only builds and 'build:zip' builds and creates a zip. This now makes 'build:core' redundant.

This commit is contained in:
Paul Sealock 2022-04-20 08:25:23 +12:00
parent e6503e60cb
commit 01ed9e2c9b
3 changed files with 5 additions and 11 deletions

View File

@ -13,7 +13,7 @@ echo "Installing PHP and JS dependencies..."
pnpm install
composer install || exit "$?"
echo "Running JS Build..."
pnpm run build:core || exit "$?"
pnpm run build || exit "$?"
echo "Cleaning up PHP dependencies..."
composer install --no-dev || exit "$?"

View File

@ -9,14 +9,14 @@
},
"license": "GPL-3.0+",
"config": {
"wp_org_slug": "woocommerce"
"wp_org_slug": "woocommerce",
"build_step": "pnpm run build:zip"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"build": "./bin/build-zip.sh",
"build": "WC_ADMIN_PHASE=core pnpm run build:feature-config && pnpm nx build woocommerce-admin && pnpm nx build woocommerce-legacy-assets && pnpm run makepot",
"build:feature-config": "php bin/generate-feature-config.php",
"build:core": "WC_ADMIN_PHASE=core pnpm run build:feature-config && pnpm nx build woocommerce-admin && pnpm nx build woocommerce-legacy-assets && pnpm run makepot",
"build:zip": "pnpm run build",
"build:zip": "./bin/build-zip.sh",
"lint:js": "eslint assets/js --ext=js",
"docker:down": "pnpx wc-e2e docker:down",
"docker:ssh": "pnpx wc-e2e docker:ssh",

View File

@ -41,12 +41,6 @@
"script": "build"
}
},
"build-core": {
"executor": "@nrwl/workspace:run-script",
"options": {
"script": "build:core"
}
},
"build-zip": {
"executor": "@nrwl/workspace:run-script",
"options": {