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
03c62f1c
Commit
03c62f1c
authored
8 years ago
by
Dan Abramov
Browse files
Options
Download
Email Patches
Plain Diff
Eject Flow stubs
Related to
#72
,
c2ba7a4a
parent
8c711e22
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/eject.js
+3
-0
scripts/eject.js
with
3 additions
and
0 deletions
+3
-0
scripts/eject.js
+
3
-
0
View file @
03c62f1c
...
...
@@ -42,6 +42,8 @@ prompt('Are you sure you want to eject? This action is permanent. [y/N]', functi
var
files
=
[
path
.
join
(
'
config
'
,
'
babel.dev.js
'
),
path
.
join
(
'
config
'
,
'
babel.prod.js
'
),
path
.
join
(
'
config
'
,
'
flow
'
,
'
css.js.flow
'
),
path
.
join
(
'
config
'
,
'
flow
'
,
'
file.js.flow
'
),
path
.
join
(
'
config
'
,
'
eslint.js
'
),
path
.
join
(
'
config
'
,
'
webpack.config.dev.js
'
),
path
.
join
(
'
config
'
,
'
webpack.config.prod.js
'
),
...
...
@@ -65,6 +67,7 @@ prompt('Are you sure you want to eject? This action is permanent. [y/N]', functi
// Copy the files over
fs
.
mkdirSync
(
path
.
join
(
hostPath
,
'
config
'
));
fs
.
mkdirSync
(
path
.
join
(
hostPath
,
'
config
'
,
'
flow
'
));
fs
.
mkdirSync
(
path
.
join
(
hostPath
,
'
scripts
'
));
files
.
forEach
(
function
(
file
)
{
...
...
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