Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
59ff0b59
Commit
59ff0b59
authored
8 years ago
by
Max Stoiber
Committed by
Christopher Chedeau
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix --version (#152)
parent
f2c12750
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
global-cli/index.js
+4
-5
global-cli/index.js
with
4 additions
and
5 deletions
+4
-5
global-cli/index.js
+
4
-
5
View file @
59ff0b59
...
...
@@ -54,17 +54,16 @@ var argv = require('minimist')(process.argv.slice(2));
*/
var
commands
=
argv
.
_
;
if
(
commands
.
length
===
0
)
{
if
(
argv
.
version
)
{
console
.
log
(
'
create-react-app version:
'
+
require
(
'
./package.json
'
).
version
);
process
.
exit
();
}
console
.
error
(
'
Usage: create-react-app <project-directory> [--verbose]
'
);
process
.
exit
(
1
);
}
if
(
argv
.
version
)
{
console
.
log
(
'
create-react-app version:
'
+
require
(
'
./package.json
'
).
version
);
process
.
exit
();
}
createApp
(
commands
[
0
],
argv
.
verbose
,
argv
[
'
scripts-version
'
]);
function
createApp
(
name
,
verbose
,
version
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets