From 955ea330df0339cadf337a72bafbf806163dfd8c Mon Sep 17 00:00:00 2001
From: Dan Abramov <dan.abramov@gmail.com>
Date: Thu, 21 Jul 2016 11:20:42 +0100
Subject: [PATCH] Make messages windows-friendly

---
 global-cli/index.js |  2 +-
 scripts/build.js    | 10 ++++++----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/global-cli/index.js b/global-cli/index.js
index 551a21fd1..ea5f3c1dd 100644
--- a/global-cli/index.js
+++ b/global-cli/index.js
@@ -91,7 +91,7 @@ function createApp(name, verbose, version) {
   fs.writeFileSync(path.join(root, 'package.json'), JSON.stringify(packageJson));
   process.chdir(root);
 
-  console.log('Installing packages. This might take a couple minutes. ⌛');
+  console.log('Installing packages. This might take a couple minutes.');
   console.log('Installing react-scripts from npm...');
 
   run(root, appName, version, verbose);
diff --git a/scripts/build.js b/scripts/build.js
index 9677f1958..6ac64886a 100644
--- a/scripts/build.js
+++ b/scripts/build.js
@@ -26,12 +26,14 @@ webpack(config).run(function(err, stats) {
     process.exit(1);
   }
 
+  var openCommand = process.platform === 'win32' ? 'start' : 'open';
   console.log('Successfully generated a bundle in the build folder!');
   console.log();
-  console.log('You can now serve it with any static server:');
+  console.log('You can now serve it with any static server, for example:');
   console.log('  cd build');
-  console.log('  python -m SimpleHTTPServer 9000');
-  console.log('  open http://localhost:9000');
+  console.log('  npm install -g http-server');
+  console.log('  hs');
+  console.log('  ' + openCommand + ' http://localhost:8080');
   console.log();
-  console.log('It is optimized and ready to be deployed for production.');
+  console.log('The bundle is optimized and ready to be deployed to production.');
 });
-- 
GitLab