File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,10 @@ const build = (appName) => {
4949 font : 'Graffiti'
5050 } , function ( err , data ) {
5151 if ( err ) {
52- return ;
52+ console . log ( chalk . white . bold ( 'React XP' ) ) ;
53+ } else {
54+ console . log ( data ) ;
5355 }
54- console . log ( data ) ;
5556 console . log ( '----------------------------------------------------------' ) ;
5657 console . log ( chalk . green . bold ( 'Welcome to ReactXP' ) ) ;
5758 console . log ( '----------------------------------------------------------' ) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ program
1313 . parse ( process . argv ) ;
1414
1515if ( program . args . length > 0 ) {
16- spawn ( build ( program . args [ 0 ] ) , { shell : true , stdio : 'inherit' } ) ;
16+ build ( program . args [ 0 ] ) ;
1717} else if ( program . args . length < 1 ) {
1818 console . log ( chalk . red ( 'Please supply a name for your new React XP app.' ) ) ;
1919}
You can’t perform that action at this time.
0 commit comments