@@ -153,7 +153,6 @@ module.exports = function(
153
153
154
154
if ( fs . existsSync ( templateJsonPath ) ) {
155
155
const templateDependencies = require ( templateJsonPath ) . dependencies ;
156
- console . log ( templateDependencies ) ;
157
156
args = args . concat (
158
157
Object . keys ( templateDependencies ) . map ( key => {
159
158
return `${ key } @${ templateDependencies [ key ] } ` ;
@@ -170,7 +169,8 @@ module.exports = function(
170
169
171
170
// Install template dependencies, and react and react-dom if missing.
172
171
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 } ...` ) ;
174
174
console . log ( ) ;
175
175
176
176
const proc = spawn . sync ( command , args , { stdio : 'inherit' } ) ;
@@ -184,11 +184,6 @@ module.exports = function(
184
184
verifyTypeScriptSetup ( ) ;
185
185
}
186
186
187
- if ( tryGitInit ( appPath ) ) {
188
- console . log ( ) ;
189
- console . log ( 'Initialized a git repository.' ) ;
190
- }
191
-
192
187
// Remove template
193
188
console . log ( ) ;
194
189
console . log ( `Removing template package using ${ command } ...` ) ;
@@ -202,6 +197,11 @@ module.exports = function(
202
197
return ;
203
198
}
204
199
200
+ if ( tryGitInit ( appPath ) ) {
201
+ console . log ( ) ;
202
+ console . log ( 'Initialized a git repository.' ) ;
203
+ }
204
+
205
205
// Display the most elegant way to cd.
206
206
// This needs to handle an undefined originalDirectory for
207
207
// backward compatibility with old global-cli's.
0 commit comments