Skip to content

Commit 13df282

Browse files
committed
app generator complete
1 parent 2ac3ec9 commit 13df282

File tree

2 files changed

+22
-28
lines changed

2 files changed

+22
-28
lines changed

commands/coldbox/create/app.cfc

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ component extends="coldbox-cli.models.BaseCommand" {
126126
arguments.skeleton = variables.templateMap[ arguments.skeleton ];
127127
}
128128

129-
printInfo( "🛠️ Starting to scaffold your application with the [#arguments.skeleton#] template" )
129+
printInfo( "⬇️ Downloading [#arguments.skeleton#] template..." )
130130

131131
// Install the skeleton from ForgeBox or other endpoint
132132
packageService.installPackage(
@@ -155,7 +155,7 @@ component extends="coldbox-cli.models.BaseCommand" {
155155
}
156156

157157
printSuccess( "✅ Application scaffolded successfully!" )
158-
printInfo( " 🌐 Setting Up Your box.json" )
158+
printInfo( "✏️ Setting Up Your box.json" )
159159

160160
if ( arguments.boxlang ) {
161161
command( "package set" ).params( language: "BoxLang" ).run();
@@ -175,7 +175,8 @@ component extends="coldbox-cli.models.BaseCommand" {
175175
.run();
176176

177177
// set the server name if the user provided one
178-
printInfo( "📡 Preparing server and support files..." );
178+
variables.print.line().toConsole();
179+
printInfo( "📡 Preparing server and support files" );
179180
if ( arguments.name != defaultAppName ) {
180181
command( "server set" ).params( name = arguments.name ).run();
181182
}
@@ -228,15 +229,15 @@ component extends="coldbox-cli.models.BaseCommand" {
228229
}
229230
}
230231
} else {
231-
printWarn( "⏭️ copilot-instructions.md file already exists, skipping creation." )
232+
printWarn( "⏭️ Copilot Instructions already exist, skipping creation." )
232233
}
233234

234235
// Run migrations init
235236
if ( arguments.migrations ) {
236237
printInfo( "🚀 Initializing Migrations" );
237238
variables.utility.ensureMigrationsModule();
238239
command( "migrate init" ).run();
239-
printHelp( "👉 You can run `migrate help` to see all available migration commands." )
240+
printHelp( "👉 You can run `migrate help` to see all available migration commands" )
240241
}
241242

242243
if ( arguments.docker ) {
@@ -259,19 +260,17 @@ component extends="coldbox-cli.models.BaseCommand" {
259260
)
260261

261262
printSuccess( "✅ Docker setup complete!" )
262-
263-
variables.print
264-
.line( "👉 You can run 'box run-script docker:build' to build your Docker image." )
265-
.line( "👉 You can run 'box run-script docker:run' to run your Docker container." )
266-
.line( "👉 You can run 'box run-script docker:bash' to go into the container shell." )
267-
.line( "👉 You can run 'box run-script docker:stack' to startup the Docker Compose Stack" )
268-
.toConsole();
263+
printHelp( "👉 You can run 'box run-script docker:build' to build your Docker image." )
264+
printHelp( "👉 You can run 'box run-script docker:run' to run your Docker container." )
265+
printHelp( "👉 You can run 'box run-script docker:bash' to go into the container shell." )
266+
printHelp( "👉 You can run 'box run-script docker:stack' to startup the Docker Compose Stack" )
267+
variables.print.line().toConsole()
269268
}
270269
}
271270

272271
// VITE Setup
273272
if ( arguments.vite ) {
274-
if ( arguments.skeleton != "modern" && arguments.skeleton != "boxlang" ) {
273+
if ( listFindNoCase( "modern,boxlang", arguments.skeleton ) == 0 ) {
275274
printWarn( "⚠️ Vite setup is only supported for 'modern' or 'boxlang' skeletons. Skipping Vite setup." )
276275
} else {
277276
printInfo( "🥊 Setting up Vite for your frontend build system" )
@@ -299,20 +298,17 @@ component extends="coldbox-cli.models.BaseCommand" {
299298

300299
printInfo( "🥊 Installing ColdBox Vite Helpers" )
301300
command( "install" ).params( "vite-helpers" ).run();
302-
303301
printSuccess( "✅ Vite setup complete!" )
304-
305-
variables.print
306-
.line( "👉 You can run 'npm install' to install the dependencies" )
307-
.line( "👉 You can run 'npm run dev' to start the development server" )
308-
.line( "👉 You can run 'npm run build' to build the production assets" )
309-
.toConsole();
302+
printHelp( "👉 You can run 'npm install' to install the dependencies" )
303+
printHelp( "👉 You can run 'npm run dev' to start the development server" )
304+
printHelp( "👉 You can run 'npm run build' to build the production assets" )
305+
variables.print.line().toConsole();
310306
}
311307
}
312308

313309
// REST Setup
314310
if ( arguments.rest ) {
315-
if ( arguments.skeleton != "modern" && arguments.skeleton != "boxlang" ) {
311+
if ( listFindNoCase( "modern,boxlang", arguments.skeleton ) == 0 ) {
316312
printWarn( "⚠️ REST setup is only supported for 'modern' or 'boxlang' skeletons. Skipping REST setup." )
317313
} else {
318314
printInfo( "🥊 Setting up a REST API only ColdBox application" )
@@ -386,16 +382,14 @@ component extends="coldbox-cli.models.BaseCommand" {
386382
)
387383
.run();
388384

389-
printSuccess( "✅ REST API only setup complete!" )
385+
printSuccess( "✅ REST API setup complete!" )
390386
}
391387
}
392388

393389
printSuccess( "🥊 Your ColdBox BoxLang application is ready to roll!" )
394-
variables.print
395-
.line( "👉 Run 'box server start' to launch the development server." )
396-
.line( "👉 Run 'box coldbox help' to see a list of available commands from the ColdBox CLI" )
397-
.line( "🗳️ Happy coding!" )
398-
.toConsole();
390+
printHelp( "👉 Run 'server start' to launch the development server." )
391+
printHelp( "👉 Run 'coldbox help' to see a list of available commands from the ColdBox CLI" )
392+
printHelp( "🗳️ Happy coding!" )
399393
}
400394

401395
/**

models/Utility.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ component singleton {
3434
function ensureMigrationsModule(){
3535
if ( !isMigrationsModuleInstalled() ) {
3636
variables.print
37-
.redLine( "CommandBox-Migrations module not installed. Installing it for you, please wait..." )
37+
.redLine( "‼️ CommandBox-Migrations module not installed. Installing it for you, please wait..." )
3838
.line()
3939
.toConsole();
4040
variables.wirebox

0 commit comments

Comments
 (0)