Merge pull request #31122 from woocommerce/woocommerce-composer
Add some common composer executor commands for woocommerce so it can …
This commit is contained in:
commit
392d79ab01
|
@ -13,6 +13,8 @@
|
||||||
"wp_org_slug": "woocommerce"
|
"wp_org_slug": "woocommerce"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"composer:install": "composer install",
|
||||||
|
"composer:dump-autoload": "composer dump-autoload",
|
||||||
"check:subset-installed": "pnpm list --depth 1 install-subset > /dev/null 2>&1",
|
"check:subset-installed": "pnpm list --depth 1 install-subset > /dev/null 2>&1",
|
||||||
"preinstall": "npx only-allow pnpm",
|
"preinstall": "npx only-allow pnpm",
|
||||||
"install:subset-only": "pnpm install --no-package-lock --no-save install-subset",
|
"install:subset-only": "pnpm install --no-package-lock --no-save install-subset",
|
||||||
|
|
|
@ -3,6 +3,18 @@
|
||||||
"sourceRoot": "plugins/woocommerce",
|
"sourceRoot": "plugins/woocommerce",
|
||||||
"projectType": "application",
|
"projectType": "application",
|
||||||
"targets": {
|
"targets": {
|
||||||
|
"composer-install": {
|
||||||
|
"executor": "@nrwl/workspace:run-script",
|
||||||
|
"options": {
|
||||||
|
"script": "composer:install"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"composer-dump-autoload": {
|
||||||
|
"executor": "@nrwl/workspace:run-script",
|
||||||
|
"options": {
|
||||||
|
"script": "composer:dump-autoload"
|
||||||
|
}
|
||||||
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"executor": "@nrwl/workspace:run-script",
|
"executor": "@nrwl/workspace:run-script",
|
||||||
"options": {
|
"options": {
|
||||||
|
|
Loading…
Reference in New Issue