File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ It correctly bundles React in production mode and optimizes the build for the be
80
80
The build is minified and the filenames include the hashes.<br >
81
81
Your app is ready to be deployed!
82
82
83
- ## How Do I?...
83
+ ## How Do I…?
84
84
85
85
The generated project will include a guide in its README.<br >
86
86
You can also read its latest version [ here] ( https://github.com/facebookincubator/create-react-app/blob/master/template/README.md ) .
Original file line number Diff line number Diff line change @@ -54,17 +54,16 @@ var argv = require('minimist')(process.argv.slice(2));
54
54
*/
55
55
var commands = argv . _ ;
56
56
if ( commands . length === 0 ) {
57
+ if ( argv . version ) {
58
+ console . log ( 'create-react-app version: ' + require ( './package.json' ) . version ) ;
59
+ process . exit ( ) ;
60
+ }
57
61
console . error (
58
62
'Usage: create-react-app <project-directory> [--verbose]'
59
63
) ;
60
64
process . exit ( 1 ) ;
61
65
}
62
66
63
- if ( argv . version ) {
64
- console . log ( 'create-react-app version: ' + require ( './package.json' ) . version ) ;
65
- process . exit ( ) ;
66
- }
67
-
68
67
createApp ( commands [ 0 ] , argv . verbose , argv [ 'scripts-version' ] ) ;
69
68
70
69
function createApp ( name , verbose , version ) {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ We are always open to [your feedback](https://github.com/facebookincubator/creat
7
7
8
8
## Folder Structure
9
9
10
- After creation, you project should look like this:
10
+ After creation, your project should look like this:
11
11
12
12
```
13
13
my-app/
You can’t perform that action at this time.
0 commit comments