@@ -46,7 +46,7 @@ function installExpoBundleTooling(projectPath: string): Q.Promise<void> {
4646
4747 return TestUtil . getProcessOutput (
4848 `npm install --save-dev @react-native/metro-config@${ reactNativeVersion } ` ,
49- { cwd : projectPath }
49+ { cwd : projectPath , noLogStdOut : true }
5050 ) . then ( ( ) => { return null ; } ) ;
5151}
5252
@@ -231,7 +231,7 @@ class RNIOS extends Platform.IOS implements RNPlatform {
231231 } else {
232232 // Install the Podfile
233233 return TestUtil . copyFile ( path . join ( TestConfig . templatePath , "ios" , "Podfile" ) , podfilePath , true )
234- . then ( ( ) => TestUtil . getProcessOutput ( `pod install` , { cwd : iOSProject } ) )
234+ . then ( ( ) => TestUtil . getProcessOutput ( `pod install` , { cwd : iOSProject , noLogStdOut : true } ) )
235235 // Put the IOS deployment key in the Info.plist
236236 . then ( TestUtil . replaceString . bind ( undefined , infoPlistPath ,
237237 "</dict>\n</plist>" ,
@@ -366,23 +366,23 @@ class RNProjectManager extends ProjectManager {
366366 mkdirp . sync ( projectDirectory ) ;
367367
368368 if ( TestConfig . isExpoApp ) {
369- return TestUtil . getProcessOutput ( `npx create-expo-app@latest ${ appName } --template blank@sdk-55` , { cwd : projectDirectory , timeout : 30 * 60 * 1000 } )
369+ return TestUtil . getProcessOutput ( `npx create-expo-app@latest ${ appName } --template blank@sdk-55` , { cwd : projectDirectory , timeout : 30 * 60 * 1000 , noLogStdOut : true } )
370370 . then ( ( e ) => { console . log ( `"npx expo init ${ appName } " success. cwd=${ projectDirectory } ` ) ; return e ; } )
371371 . then ( this . copyTemplate . bind ( this , templatePath , projectDirectory ) )
372- . then < void > ( TestUtil . getProcessOutput . bind ( undefined , TestConfig . thisPluginInstallString , { cwd : path . join ( projectDirectory , TestConfig . TestAppName ) } ) )
372+ . then < void > ( TestUtil . getProcessOutput . bind ( undefined , TestConfig . thisPluginInstallString , { cwd : path . join ( projectDirectory , TestConfig . TestAppName ) , noLogStdOut : true , noLogStdErr : true } ) )
373373 . then ( installExpoBundleTooling . bind ( undefined , path . join ( projectDirectory , TestConfig . TestAppName ) ) )
374- . then < void > ( TestUtil . getProcessOutput . bind ( undefined , "npx expo install expo-build-properties" , { cwd : path . join ( projectDirectory , TestConfig . TestAppName ) } ) )
375- . then ( TestUtil . getProcessOutput . bind ( undefined , `npx expo prebuild --clean` , { cwd : path . join ( projectDirectory , TestConfig . TestAppName ) } ) )
374+ . then < void > ( TestUtil . getProcessOutput . bind ( undefined , "npx expo install expo-build-properties" , { cwd : path . join ( projectDirectory , TestConfig . TestAppName ) , noLogStdOut : true } ) )
375+ . then ( TestUtil . getProcessOutput . bind ( undefined , `npx expo prebuild --clean` , { cwd : path . join ( projectDirectory , TestConfig . TestAppName ) , noLogStdOut : true } ) )
376376 . then ( ( ) => {
377377 ensureAndroidCleartextTraffic ( path . join ( projectDirectory , TestConfig . TestAppName , "android" , "app" , "src" , "main" , "AndroidManifest.xml" ) ) ;
378378 return null ;
379379 } )
380380 . then ( ( ) => { return null ; } ) ;
381381 } else {
382- return TestUtil . getProcessOutput ( "npx @react-native-community/cli init " + appName + " --version 0.86.2 --install-pods" , { cwd : projectDirectory , timeout : 30 * 60 * 1000 } )
382+ return TestUtil . getProcessOutput ( "npx @react-native-community/cli init " + appName + " --version 0.86.2 --install-pods" , { cwd : projectDirectory , timeout : 30 * 60 * 1000 , noLogStdOut : true } )
383383 . then ( ( e ) => { console . log ( `"npx @react-native-community/cli init ${ appName } " success. cwd=${ projectDirectory } ` ) ; return e ; } )
384384 . then ( this . copyTemplate . bind ( this , templatePath , projectDirectory ) )
385- . then < void > ( TestUtil . getProcessOutput . bind ( undefined , TestConfig . thisPluginInstallString , { cwd : path . join ( projectDirectory , TestConfig . TestAppName ) } ) )
385+ . then < void > ( TestUtil . getProcessOutput . bind ( undefined , TestConfig . thisPluginInstallString , { cwd : path . join ( projectDirectory , TestConfig . TestAppName ) , noLogStdOut : true , noLogStdErr : true } ) )
386386 . then ( ( ) => { return null ; } )
387387 . catch ( ( error ) => {
388388 console . log ( `"npx @react-native-community/cli init ${ appName } failed". cwd=${ projectDirectory } ` , error ) ;
@@ -466,7 +466,7 @@ class RNProjectManager extends ProjectManager {
466466 } else {
467467 return deferred . promise
468468 . then ( TestUtil . getProcessOutput . bind ( undefined , "npx react-native bundle --entry-file index.js --platform " + targetPlatform . getName ( ) + " --bundle-output " + bundlePath + " --assets-dest " + bundleFolder + " --dev false" ,
469- { cwd : path . join ( projectDirectory , TestConfig . TestAppName ) } ) )
469+ { cwd : path . join ( projectDirectory , TestConfig . TestAppName ) , noLogStdOut : true } ) )
470470 . then < string > ( TestUtil . archiveFolder . bind ( undefined , bundleFolder , "" , path . join ( projectDirectory , TestConfig . TestAppName , "update.zip" ) , isDiff ) )
471471 . then ( ( result ) => { console . log ( `[TIMING] createUpdateArchive(${ projectDirectory } , ${ targetPlatform . getName ( ) } ) took ${ Date . now ( ) - t0 } ms` ) ; return result ; } ) ;
472472 }
0 commit comments