feat(rspack): add continous inference support (#29973)
## Current Behavior Rspack and Rsbuild Inference Plugins do not infer `continuous` for serve tasks. ## Expected Behavior Correctly infer `continuous` true.
This commit is contained in:
parent
2cd3252365
commit
9fc7ffdaf3
@ -116,6 +116,7 @@ describe('@nx/rsbuild', () => {
|
||||
},
|
||||
"dev-serve": {
|
||||
"command": "rsbuild dev",
|
||||
"continuous": true,
|
||||
"options": {
|
||||
"args": [
|
||||
"--mode=development",
|
||||
@ -131,6 +132,7 @@ describe('@nx/rsbuild', () => {
|
||||
},
|
||||
"preview-serve": {
|
||||
"command": "rsbuild preview",
|
||||
"continuous": true,
|
||||
"dependsOn": [
|
||||
"build-something",
|
||||
"^build-something",
|
||||
|
||||
@ -187,6 +187,7 @@ async function createRsbuildTargets(
|
||||
};
|
||||
|
||||
targets[options.devTargetName] = {
|
||||
continuous: true,
|
||||
command: `rsbuild dev`,
|
||||
options: {
|
||||
cwd: projectRoot,
|
||||
@ -195,6 +196,7 @@ async function createRsbuildTargets(
|
||||
};
|
||||
|
||||
targets[options.previewTargetName] = {
|
||||
continuous: true,
|
||||
command: `rsbuild preview`,
|
||||
dependsOn: [`${options.buildTargetName}`, `^${options.buildTargetName}`],
|
||||
options: {
|
||||
|
||||
@ -218,6 +218,7 @@ async function createRspackTargets(
|
||||
};
|
||||
|
||||
targets[options.serveTargetName] = {
|
||||
continuous: true,
|
||||
command: `rspack serve`,
|
||||
options: {
|
||||
cwd: projectRoot,
|
||||
@ -227,6 +228,7 @@ async function createRspackTargets(
|
||||
};
|
||||
|
||||
targets[options.previewTargetName] = {
|
||||
continuous: true,
|
||||
command: `rspack serve`,
|
||||
options: {
|
||||
cwd: projectRoot,
|
||||
@ -236,6 +238,7 @@ async function createRspackTargets(
|
||||
};
|
||||
|
||||
targets[options.serveStaticTargetName] = {
|
||||
continuous: true,
|
||||
executor: '@nx/web:file-server',
|
||||
options: {
|
||||
buildTarget: options.buildTargetName,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user