diff --git a/global-cli/index.js b/global-cli/index.js index 551a21fd11fe1dbd0a412078fa104724d67028fc..ea5f3c1dd95e96b8e43e210e6de892eac135f38c 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 9677f1958071bed80d3d51b8da6db479084d50d6..6ac64886a75ad1b6253c0c656076388ccedd646f 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.'); });