@@ -467,6 +467,15 @@ async function setupHardhatProject(): Promise<void> {
467
467
try {
468
468
const server = spawn ( 'git clone https://github.com/NomicFoundation/hardhat-boilerplate && cd hardhat-boilerplate && yarn install && yarn add "@typechain/ethers-v5@^10.1.0" && yarn add "@typechain/hardhat@^6.1.2" && yarn add "typechain@^8.1.0" && echo "END"' , [ ] , { cwd : process . cwd ( ) + '/apps/remix-ide' , shell : true , detached : true } )
469
469
return new Promise ( ( resolve , reject ) => {
470
+ server . stdout . on ( 'data' , function ( data ) {
471
+ console . log ( 'stdout: ' + data . toString ( ) )
472
+ } )
473
+ server . stderr . on ( 'data' , function ( data ) {
474
+ console . log ( 'stderr: ' + data . toString ( ) )
475
+ } )
476
+ server . on ( 'error' , function ( err ) {
477
+ console . error ( 'Failed to start process:' , err )
478
+ } )
470
479
server . on ( 'exit' , function ( exitCode ) {
471
480
console . log ( "Child exited with code: " + exitCode ) ;
472
481
console . log ( 'end' )
@@ -483,6 +492,15 @@ async function compileHardhatProject(): Promise<void> {
483
492
try {
484
493
const server = spawn ( 'npx hardhat compile' , [ ] , { cwd : process . cwd ( ) + '/apps/remix-ide/hardhat-boilerplate' , shell : true , detached : true } )
485
494
return new Promise ( ( resolve , reject ) => {
495
+ server . stdout . on ( 'data' , function ( data ) {
496
+ console . log ( 'stdout: ' + data . toString ( ) )
497
+ } )
498
+ server . stderr . on ( 'data' , function ( data ) {
499
+ console . log ( 'stderr: ' + data . toString ( ) )
500
+ } )
501
+ server . on ( 'error' , function ( err ) {
502
+ console . error ( 'Failed to start process:' , err )
503
+ } )
486
504
server . on ( 'exit' , function ( exitCode ) {
487
505
console . log ( "Child exited with code: " + exitCode ) ;
488
506
console . log ( 'end' )
@@ -625,4 +643,4 @@ function resetGitToHead() {
625
643
}
626
644
console . log ( `Git reset to HEAD successfully.\n${ stdout } ` ) ;
627
645
} ) ;
628
- }
646
+ }
0 commit comments