@@ -153,7 +153,6 @@ module.exports = function(
153153
154154 if ( fs . existsSync ( templateJsonPath ) ) {
155155 const templateDependencies = require ( templateJsonPath ) . dependencies ;
156- console . log ( templateDependencies ) ;
157156 args = args . concat (
158157 Object . keys ( templateDependencies ) . map ( key => {
159158 return `${ key } @${ templateDependencies [ key ] } ` ;
@@ -170,7 +169,8 @@ module.exports = function(
170169
171170 // Install template dependencies, and react and react-dom if missing.
172171 if ( ( ! isReactInstalled ( appPackage ) || templateName ) && args . length > 1 ) {
173- console . log ( `Installing react and react-dom using ${ command } ...` ) ;
172+ console . log ( ) ;
173+ console . log ( `Installing template dependencies using ${ command } ...` ) ;
174174 console . log ( ) ;
175175
176176 const proc = spawn . sync ( command , args , { stdio : 'inherit' } ) ;
@@ -184,11 +184,6 @@ module.exports = function(
184184 verifyTypeScriptSetup ( ) ;
185185 }
186186
187- if ( tryGitInit ( appPath ) ) {
188- console . log ( ) ;
189- console . log ( 'Initialized a git repository.' ) ;
190- }
191-
192187 // Remove template
193188 console . log ( ) ;
194189 console . log ( `Removing template package using ${ command } ...` ) ;
@@ -202,6 +197,11 @@ module.exports = function(
202197 return ;
203198 }
204199
200+ if ( tryGitInit ( appPath ) ) {
201+ console . log ( ) ;
202+ console . log ( 'Initialized a git repository.' ) ;
203+ }
204+
205205 // Display the most elegant way to cd.
206206 // This needs to handle an undefined originalDirectory for
207207 // backward compatibility with old global-cli's.
0 commit comments