Add some common composer executor commands for woocommerce so it can be used in Nx context
This commit is contained in:
parent
9d08ac8ac3
commit
898ccb986f
|
@ -13,6 +13,8 @@
|
|||
"wp_org_slug": "woocommerce"
|
||||
},
|
||||
"scripts": {
|
||||
"composer:install": "composer install",
|
||||
"composer:dump-autoload": "composer dump-autoload",
|
||||
"check:subset-installed": "pnpm list --depth 1 install-subset > /dev/null 2>&1",
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"install:subset-only": "pnpm install --no-package-lock --no-save install-subset",
|
||||
|
|
|
@ -3,6 +3,18 @@
|
|||
"sourceRoot": "plugins/woocommerce",
|
||||
"projectType": "application",
|
||||
"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": {
|
||||
"executor": "@nrwl/workspace:run-script",
|
||||
"options": {
|
||||
|
|
Loading…
Reference in New Issue