@@ -46,7 +46,7 @@ program
4646 templateName = templateAnswer . templateName ;
4747 }
4848
49- // 1. Look up the template by name
49+ // Look up the template by name
5050 const template = templates . find ( t => t . name === templateName ) ;
5151 if ( ! template ) {
5252 console . error ( `❌ Template "${ templateName } " not found.\n` ) ;
@@ -60,13 +60,13 @@ program
6060
6161 const templateRepoUrl = template . repo ;
6262
63- // 2. Define the full path for the new project
63+ // Define the full path for the new project
6464 const projectPath = path . resolve ( projectDirectory ) ;
6565 console . log ( `Cloning template "${ templateName } " from ${ templateRepoUrl } into ${ projectPath } ...` ) ;
6666
6767 try {
6868
69- // 3. Clone the repository
69+ // Clone the repository
7070 const cloneArgs = [ 'clone' ] ;
7171 if ( template . options && Array . isArray ( template . options ) ) {
7272 cloneArgs . push ( ...template . options ) ;
@@ -75,11 +75,11 @@ program
7575 await execa ( 'git' , cloneArgs ) ;
7676 console . log ( '✅ Template cloned successfully.' ) ;
7777
78- // 4. Remove the .git folder from the *new* project
78+ // Remove the .git folder from the *new* project
7979 await fs . remove ( path . join ( projectPath , '.git' ) ) ;
8080 console . log ( '🧹 Cleaned up template .git directory.' ) ;
8181
82- // 5. Ask user for customization details
82+ // Ask user for customization details
8383 const questions = [
8484 {
8585 type : 'input' ,
@@ -109,7 +109,7 @@ program
109109
110110 const answers : ProjectData = await inquirer . prompt ( questions ) ;
111111
112- // 6. Update the package.json in the new project
112+ // Update the package.json in the new project
113113 const pkgJsonPath = path . join ( projectPath , 'package.json' ) ;
114114
115115 if ( await fs . pathExists ( pkgJsonPath ) ) {
@@ -128,12 +128,12 @@ program
128128 console . log ( 'ℹ️ No package.json found in template, skipping customization.' ) ;
129129 }
130130
131- // 7. Install dependencies
131+ // Install dependencies
132132 console . log ( '📦 Installing dependencies... (This may take a moment)' ) ;
133133 await execa ( 'npm' , [ 'install' ] , { cwd : projectPath } ) ;
134134 console . log ( '✅ Dependencies installed.' ) ;
135135
136- // 8. Final message
136+ // Let the user know the project was created successfully
137137 console . log ( '\n✨ Project created successfully! ✨\n' ) ;
138138 console . log ( `To get started:` ) ;
139139 console . log ( ` cd ${ projectDirectory } ` ) ;
0 commit comments