Merge pull request #32347 from woocommerce/add-dev-scripts
Add build-watch command for woocommerce-admin
This commit is contained in:
commit
2215c9ab3e
|
@ -50,6 +50,7 @@
|
|||
"scripts": {
|
||||
"prepare": "pnpm run build",
|
||||
"build": "tsc --build",
|
||||
"start": "tsc --build --watch",
|
||||
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
||||
"prepack": "pnpm run clean && pnpm run build"
|
||||
}
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
"clean": "rimraf ./dist && pnpm run:packages -- clean --parallel",
|
||||
"predev": "pnpm run -s install-if-deps-outdated && php ./bin/update-version.php",
|
||||
"dev": "cross-env WC_ADMIN_PHASE=development pnpm run build:feature-config && cross-env WC_ADMIN_PHASE=development pnpm run build:packages && cross-env WC_ADMIN_PHASE=development webpack",
|
||||
"client:watch": "cross-env WC_ADMIN_PHASE=development pnpm run build:feature-config && cross-env WC_ADMIN_PHASE=development webpack --watch",
|
||||
"packages:watch": "cross-env WC_ADMIN_PHASE=development pnpm run:packages -- start --parallel",
|
||||
"docs": "./bin/import-wp-css-storybook.sh && BABEL_ENV=storybook STORYBOOK=true pnpm exec build-storybook -c storybook/.storybook -o ./docs/components/storybook",
|
||||
"i18n": "pnpm run -s i18n:js && pnpm run -s i18n:check && pnpm run -s i18n:pot && pnpm run -s i18n:build",
|
||||
"i18n:build": "php bin/combine-pot-files.php languages/woocommerce-admin.po languages/woocommerce-admin.pot",
|
||||
|
|
|
@ -15,6 +15,26 @@
|
|||
"options": {
|
||||
"script": "build"
|
||||
}
|
||||
},
|
||||
"build-watch": {
|
||||
"executor": "@nrwl/workspace:run-commands",
|
||||
"options": {
|
||||
"commands": [
|
||||
"WC_ADMIN_PHASE=development pnpm nx dev woocommerce-admin",
|
||||
"pnpm nx watch woocommerce-admin"
|
||||
],
|
||||
"parallel": false
|
||||
}
|
||||
},
|
||||
"watch": {
|
||||
"executor": "@nrwl/workspace:run-commands",
|
||||
"options": {
|
||||
"commands": [
|
||||
"pnpm nx packages:watch woocommerce-admin",
|
||||
"pnpm nx client:watch woocommerce-admin"
|
||||
],
|
||||
"parallel": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,6 +54,15 @@
|
|||
}
|
||||
},
|
||||
"build-watch": {
|
||||
"executor": "@nrwl/workspace:run-commands",
|
||||
"options": {
|
||||
"commands": [
|
||||
"pnpm nx build:feature-config woocommerce-admin",
|
||||
"pnpm nx watch-assets woocommerce"
|
||||
]
|
||||
}
|
||||
},
|
||||
"watch-assets": {
|
||||
"executor": "@nrwl/workspace:run-commands",
|
||||
"options": {
|
||||
"command": "pnpx grunt watch",
|
||||
|
|
Loading…
Reference in New Issue