File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,10 @@ const build = (appName) => {
49
49
font : 'Graffiti'
50
50
} , function ( err , data ) {
51
51
if ( err ) {
52
- return ;
52
+ console . log ( chalk . white . bold ( 'React XP' ) ) ;
53
+ } else {
54
+ console . log ( data ) ;
53
55
}
54
- console . log ( data ) ;
55
56
console . log ( '----------------------------------------------------------' ) ;
56
57
console . log ( chalk . green . bold ( 'Welcome to ReactXP' ) ) ;
57
58
console . log ( '----------------------------------------------------------' ) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ program
13
13
. parse ( process . argv ) ;
14
14
15
15
if ( program . args . length > 0 ) {
16
- spawn ( build ( program . args [ 0 ] ) , { shell : true , stdio : 'inherit' } ) ;
16
+ build ( program . args [ 0 ] ) ;
17
17
} else if ( program . args . length < 1 ) {
18
18
console . log ( chalk . red ( 'Please supply a name for your new React XP app.' ) ) ;
19
19
}
You can’t perform that action at this time.
0 commit comments