File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -310,7 +310,6 @@ component extends="coldbox-cli.models.BaseCommand" {
310310 variables .print .line ().toConsole ();
311311 }
312312 }
313-
314313 // REST Setup
315314 if ( arguments .rest ) {
316315 if ( ! arguments .skeleton .reFindNoCase ( " (modern|boxlang)" ) ) {
@@ -391,6 +390,22 @@ component extends="coldbox-cli.models.BaseCommand" {
391390 }
392391 }
393392
393+ // REST Cleanup
394+ if ( directoryExists ( arguments .directory & " resources/rest" ) ){
395+ directoryDelete ( arguments .directory & " resources/rest" , true )
396+ }
397+ // Vite Cleanup
398+ if ( directoryExists ( arguments .directory & " resources/assets" ) ){
399+ directoryDelete ( arguments .directory & " resources/assets" , true )
400+ }
401+ if ( directoryExists ( arguments .directory & " resources/vite" ) ){
402+ directoryDelete ( arguments .directory & " resources/vite" , true )
403+ }
404+ // Docker Cleanup
405+ if ( directoryExists ( arguments .directory & " resources/docker" ) ){
406+ directoryDelete ( arguments .directory & " resources/docker" , true )
407+ }
408+
394409 printSuccess ( " 🥊 Your ColdBox BoxLang application is ready to roll!" )
395410 printHelp ( " 👉 Run 'server start' to launch the development server." )
396411 printHelp ( " 👉 Run 'coldbox help' to see a list of available commands from the ColdBox CLI" )
You can’t perform that action at this time.
0 commit comments