Add some common composer executor commands for woocommerce so it can be used in Nx context

This commit is contained in:
roykho 2021-11-10 06:34:54 -08:00
parent 9d08ac8ac3
commit 898ccb986f
No known key found for this signature in database
GPG Key ID: 7B36C0EA25795714
2 changed files with 14 additions and 0 deletions

View File

@ -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",

View File

@ -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": {