File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
packages/qwik-nx/src/generators/application/utils Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export function getQwikApplicationProjectTargets(
15
15
preview : getPreviewTarget ( params ) ,
16
16
test : getTestTarget ( params ) ,
17
17
serve : getServeTarget ( params ) ,
18
+ serveDebug : getServeDebugTarget ( params ) ,
18
19
} ;
19
20
}
20
21
@@ -66,7 +67,7 @@ function getTestTarget(
66
67
) : TargetConfiguration {
67
68
return {
68
69
executor : '@nrwl/vite:test' ,
69
- outputs : [ `${ params . offsetFromRoot } / coverage/${ params . projectRoot } ` ] ,
70
+ outputs : [ `${ params . offsetFromRoot } coverage/${ params . projectRoot } ` ] ,
70
71
options : {
71
72
passWithNoTests : true ,
72
73
reportsDirectory : `${ params . offsetFromRoot } coverage/${ params . projectRoot } ` ,
@@ -96,3 +97,15 @@ function getServeTarget(
96
97
} ,
97
98
} ;
98
99
}
100
+
101
+ function getServeDebugTarget (
102
+ params : UpdateQwikAppConfigurationParams
103
+ ) : TargetConfiguration {
104
+ return {
105
+ executor : 'nx:run-commands' ,
106
+ options : {
107
+ command : `node --inspect-brk ${ params . offsetFromRoot } /node_modules/vite/bin/vite.js --mode ssr --force` ,
108
+ cwd : params . projectRoot ,
109
+ } ,
110
+ } ;
111
+ }
You can’t perform that action at this time.
0 commit comments