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
|
pnpm install
|
||||||
composer install || exit "$?"
|
composer install || exit "$?"
|
||||||
echo "Running JS Build..."
|
echo "Running JS Build..."
|
||||||
pnpm run build:core || 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 "$?"
|
||||||
|
|
||||||
|
|
|
@ -9,14 +9,14 @@
|
||||||
},
|
},
|
||||||
"license": "GPL-3.0+",
|
"license": "GPL-3.0+",
|
||||||
"config": {
|
"config": {
|
||||||
"wp_org_slug": "woocommerce"
|
"wp_org_slug": "woocommerce",
|
||||||
|
"build_step": "pnpm run build:zip"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "npx only-allow pnpm",
|
"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: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": "./bin/build-zip.sh",
|
||||||
"build:zip": "pnpm run build",
|
|
||||||
"lint:js": "eslint assets/js --ext=js",
|
"lint:js": "eslint assets/js --ext=js",
|
||||||
"docker:down": "pnpx wc-e2e docker:down",
|
"docker:down": "pnpx wc-e2e docker:down",
|
||||||
"docker:ssh": "pnpx wc-e2e docker:ssh",
|
"docker:ssh": "pnpx wc-e2e docker:ssh",
|
||||||
|
|
|
@ -41,12 +41,6 @@
|
||||||
"script": "build"
|
"script": "build"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"build-core": {
|
|
||||||
"executor": "@nrwl/workspace:run-script",
|
|
||||||
"options": {
|
|
||||||
"script": "build:core"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"build-zip": {
|
"build-zip": {
|
||||||
"executor": "@nrwl/workspace:run-script",
|
"executor": "@nrwl/workspace:run-script",
|
||||||
"options": {
|
"options": {
|
||||||
|
|
Loading…
Reference in New Issue