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:
parent
e6503e60cb
commit
01ed9e2c9b
|
@ -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 "$?"
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue