Skip to content

Commit 2252344

Browse files
committed
Merge branch 'master' into port-option-for-npm-start
2 parents f0a0f68 + 59ff0b5 commit 2252344

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ It correctly bundles React in production mode and optimizes the build for the be
8080
The build is minified and the filenames include the hashes.<br>
8181
Your app is ready to be deployed!
8282

83-
## How Do I?...
83+
## How Do I…?
8484

8585
The generated project will include a guide in its README.<br>
8686
You can also read its latest version [here](https://github.com/facebookincubator/create-react-app/blob/master/template/README.md).

global-cli/index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,16 @@ var argv = require('minimist')(process.argv.slice(2));
5454
*/
5555
var commands = argv._;
5656
if (commands.length === 0) {
57+
if (argv.version) {
58+
console.log('create-react-app version: ' + require('./package.json').version);
59+
process.exit();
60+
}
5761
console.error(
5862
'Usage: create-react-app <project-directory> [--verbose]'
5963
);
6064
process.exit(1);
6165
}
6266

63-
if (argv.version) {
64-
console.log('create-react-app version: ' + require('./package.json').version);
65-
process.exit();
66-
}
67-
6867
createApp(commands[0], argv.verbose, argv['scripts-version']);
6968

7069
function createApp(name, verbose, version) {

template/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ We are always open to [your feedback](https://github.com/facebookincubator/creat
77

88
## Folder Structure
99

10-
After creation, you project should look like this:
10+
After creation, your project should look like this:
1111

1212
```
1313
my-app/

0 commit comments

Comments
 (0)