Skip to content
GitLab
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
82cebbf3
Commit
82cebbf3
authored
8 years ago
by
Maxim Kazantsev
Committed by
Joe Haddad
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Provide commander with package name (#1867)
commander to figure it out on its own
parent
2574a7ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/create-react-app/createReactApp.js
+4
-2
packages/create-react-app/createReactApp.js
with
4 additions
and
2 deletions
+4
-2
packages/create-react-app/createReactApp.js
+
4
-
2
View file @
82cebbf3
...
...
@@ -21,10 +21,12 @@ const tmp = require('tmp');
const
unpack
=
require
(
'
tar-pack
'
).
unpack
;
const
hyperquest
=
require
(
'
hyperquest
'
);
const
packageJson
=
require
(
'
./package.json
'
);
let
projectName
;
const
program
=
commander
.
version
(
require
(
'
./
package
.j
son
'
)
.
version
)
const
program
=
new
commander
.
Command
(
packageJson
.
name
)
.
version
(
package
J
son
.
version
)
.
arguments
(
'
<project-directory>
'
)
.
usage
(
`
${
chalk
.
green
(
'
<project-directory>
'
)}
[options]`
)
.
action
(
name
=>
{
...
...
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