@@ -52,7 +52,7 @@ async function gatherConfig(
5252
5353 while ( ! isValid ) {
5454 const response = await text ( {
55- message : "📝 Project name" ,
55+ message : "📝 What is your project named? (directory name or path) " ,
5656 placeholder : defaultName ,
5757 initialValue : flags . projectName ,
5858 defaultValue : defaultName ,
@@ -85,75 +85,71 @@ async function gatherConfig(
8585 database : ( ) =>
8686 ! flags . database
8787 ? select < ProjectDatabase > ( {
88- message : "💾 Select database" ,
88+ message : "💾 Which database would you like to use? " ,
8989 options : [
9090 {
9191 value : "libsql" ,
9292 label : "libSQL" ,
93- hint : "✨ (Recommended) - Turso's embedded SQLite database" ,
93+ hint : "Turso's embedded SQLite database (recommended) " ,
9494 } ,
9595 {
9696 value : "postgres" ,
9797 label : "PostgreSQL" ,
98- hint : "🐘 Traditional relational database" ,
98+ hint : "Traditional relational database" ,
9999 } ,
100100 ] ,
101101 } )
102102 : Promise . resolve ( flags . database ) ,
103103 auth : ( ) =>
104104 flags . auth === undefined
105105 ? confirm ( {
106- message : "🔐 Add authentication with Better-Auth?" ,
106+ message :
107+ "🔐 Would you like to add authentication with Better-Auth?" ,
107108 } )
108109 : Promise . resolve ( flags . auth ) ,
109110 features : ( ) =>
110111 ! flags . features
111112 ? multiselect < ProjectFeature > ( {
112- message : "🎯 Select additional features" ,
113+ message : "✨ Which features would you like to add? " ,
113114 options : [
114115 {
115116 value : "docker" ,
116117 label : "Docker setup" ,
117- hint : "🐳 Containerize your application" ,
118+ hint : "Containerize your application" ,
118119 } ,
119120 {
120121 value : "github-actions" ,
121122 label : "GitHub Actions" ,
122- hint : "⚡ CI/CD workflows" ,
123+ hint : "CI/CD workflows" ,
123124 } ,
124125 {
125126 value : "SEO" ,
126127 label : "Basic SEO setup" ,
127- hint : "🔍 Search engine optimization configuration" ,
128+ hint : "Search engine optimization configuration" ,
128129 } ,
129130 ] ,
130131 } )
131132 : Promise . resolve ( flags . features ) ,
132133 git : ( ) =>
133134 flags . git !== false
134135 ? confirm ( {
135- message : "🗃️ Initialize Git repository?" ,
136+ message : "🗃️ Initialize a new git repository?" ,
136137 initialValue : true ,
137138 } )
138139 : Promise . resolve ( false ) ,
139140 packageManager : async ( ) => {
140141 const detectedPackageManager = getUserPkgManager ( ) ;
141142
142143 const useDetected = await confirm ( {
143- message : `📦 Use detected package manager ( ${ detectedPackageManager } ) ?` ,
144+ message : `📦 Use ${ detectedPackageManager } as your package manager ?` ,
144145 } ) ;
145146
146147 if ( useDetected ) return detectedPackageManager ;
147148
148149 return select < PackageManager > ( {
149- message : "📦 Select package manager" ,
150+ message : "📦 Which package manager would you like to use? " ,
150151 options : [
151152 { value : "npm" , label : "npm" , hint : "Node Package Manager" } ,
152- {
153- value : "bun" ,
154- label : "bun" ,
155- hint : "All-in-one JavaScript runtime & toolkit (recommended)" ,
156- } ,
157153 {
158154 value : "pnpm" ,
159155 label : "pnpm" ,
@@ -164,7 +160,13 @@ async function gatherConfig(
164160 label : "yarn" ,
165161 hint : "Fast, reliable, and secure dependency management" ,
166162 } ,
163+ {
164+ value : "bun" ,
165+ label : "bun" ,
166+ hint : "All-in-one JavaScript runtime & toolkit (recommended)" ,
167+ } ,
167168 ] ,
169+ initialValue : "bun" ,
168170 } ) ;
169171 } ,
170172 } ,
@@ -191,7 +193,7 @@ async function main() {
191193 try {
192194 process . stdout . write ( "\x1Bc" ) ;
193195 renderTitle ( ) ;
194- intro ( chalk . bold ( "Creating a new Better-T Stack project" ) ) ;
196+ intro ( chalk . bold ( "✨ Creating a new Better-T- Stack project" ) ) ;
195197 program
196198 . name ( "create-better-t-stack" )
197199 . description ( "Create a new Better-T Stack project" )
@@ -256,28 +258,27 @@ async function main() {
256258 } ;
257259
258260 log . message (
259- `${ chalk . blue ( "Project Name: " ) } ${
261+ `${ chalk . blue ( "📝 Project Name: " ) } ${
260262 colorizedConfig . projectName
261- } \n${ chalk . blue ( "Database: " ) } ${ colorizedConfig . database } \n${ chalk . blue (
262- "Authentication: " ,
263- ) } ${ colorizedConfig . auth } \n${ chalk . blue ( "Features: " ) } ${
263+ } \n${ chalk . blue ( "💾 Database: " ) } ${ colorizedConfig . database } \n${ chalk . blue (
264+ "🔐 Authentication: " ,
265+ ) } ${ colorizedConfig . auth } \n${ chalk . blue ( "✨ Features: " ) } ${
264266 colorizedConfig . features . length
265267 ? colorizedConfig . features . join ( ", " )
266268 : chalk . gray ( "none" )
267- } \n${ chalk . blue ( "Git Init: " ) } ${ colorizedConfig . git } \n`,
269+ } \n${ chalk . blue ( "🗃️ Git Init: " ) } ${ colorizedConfig . git } \n`,
268270 ) ;
269271
270272 s . stop ( "Configuration loaded" ) ;
271273 }
272274
273275 await createProject ( config ) ;
274276
275- log . message ( "You can reproduce this setup with the following command:" , {
276- symbol : chalk . cyan ( "🔄" ) ,
277- } ) ;
278- log . info ( generateReproducibleCommand ( config ) ) ;
277+ log . info (
278+ `You can reproduce this setup with the following command:\n${ generateReproducibleCommand ( config ) } ` ,
279+ ) ;
279280
280- outro ( "Project created successfully! 🎉 " ) ;
281+ outro ( "🎉 Project created successfully!" ) ;
281282 } catch ( error ) {
282283 s . stop ( "Failed" ) ;
283284 if ( error instanceof Error ) {
0 commit comments