Skip to content

Commit 955ea33

Browse files
committed
Make messages windows-friendly
1 parent bc6f4e1 commit 955ea33

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

global-cli/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function createApp(name, verbose, version) {
9191
fs.writeFileSync(path.join(root, 'package.json'), JSON.stringify(packageJson));
9292
process.chdir(root);
9393

94-
console.log('Installing packages. This might take a couple minutes.');
94+
console.log('Installing packages. This might take a couple minutes.');
9595
console.log('Installing react-scripts from npm...');
9696

9797
run(root, appName, version, verbose);

scripts/build.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ webpack(config).run(function(err, stats) {
2626
process.exit(1);
2727
}
2828

29+
var openCommand = process.platform === 'win32' ? 'start' : 'open';
2930
console.log('Successfully generated a bundle in the build folder!');
3031
console.log();
31-
console.log('You can now serve it with any static server:');
32+
console.log('You can now serve it with any static server, for example:');
3233
console.log(' cd build');
33-
console.log(' python -m SimpleHTTPServer 9000');
34-
console.log(' open http://localhost:9000');
34+
console.log(' npm install -g http-server');
35+
console.log(' hs');
36+
console.log(' ' + openCommand + ' http://localhost:8080');
3537
console.log();
36-
console.log('It is optimized and ready to be deployed for production.');
38+
console.log('The bundle is optimized and ready to be deployed to production.');
3739
});

0 commit comments

Comments
 (0)