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(
1515 preview : getPreviewTarget ( params ) ,
1616 test : getTestTarget ( params ) ,
1717 serve : getServeTarget ( params ) ,
18+ serveDebug : getServeDebugTarget ( params ) ,
1819 } ;
1920}
2021
@@ -66,7 +67,7 @@ function getTestTarget(
6667) : TargetConfiguration {
6768 return {
6869 executor : '@nrwl/vite:test' ,
69- outputs : [ `${ params . offsetFromRoot } / coverage/${ params . projectRoot } ` ] ,
70+ outputs : [ `${ params . offsetFromRoot } coverage/${ params . projectRoot } ` ] ,
7071 options : {
7172 passWithNoTests : true ,
7273 reportsDirectory : `${ params . offsetFromRoot } coverage/${ params . projectRoot } ` ,
@@ -96,3 +97,15 @@ function getServeTarget(
9697 } ,
9798 } ;
9899}
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