Skip to content

Commit 62f1a03

Browse files
authored
Merge pull request #19 from jeffwilde/bug/exec-path-cleanup
Execution control clean-up
2 parents 30edeea + eec4c6d commit 62f1a03

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

bin/build.js

+3-2
Original file line numberDiff line numberDiff 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('----------------------------------------------------------');

bin/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ program
1313
.parse(process.argv);
1414

1515
if (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
}

0 commit comments

Comments
 (0)