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
9317d106
Commit
9317d106
authored
8 years ago
by
Max
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix check for smoke test
parent
49e2fb54
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/start.js
+5
-1
scripts/start.js
with
5 additions
and
1 deletion
+5
-1
scripts/start.js
+
5
-
1
View file @
9317d106
...
@@ -17,10 +17,14 @@ var config = require('../config/webpack.config.dev');
...
@@ -17,10 +17,14 @@ var config = require('../config/webpack.config.dev');
var
execSync
=
require
(
'
child_process
'
).
execSync
;
var
execSync
=
require
(
'
child_process
'
).
execSync
;
var
opn
=
require
(
'
opn
'
);
var
opn
=
require
(
'
opn
'
);
function
isSmokeTest
()
{
return
process
.
argv
.
some
(
function
(
item
)
{
return
item
.
indexOf
(
'
--smoke-test
'
)
>
-
1
});
}
// TODO: hide this behind a flag and eliminate dead code on eject.
// TODO: hide this behind a flag and eliminate dead code on eject.
// This shouldn't be exposed to the user.
// This shouldn't be exposed to the user.
var
handleCompile
;
var
handleCompile
;
if
(
process
.
argv
[
2
]
===
'
--s
moke
-t
est
'
)
{
if
(
isS
moke
T
est
()
)
{
handleCompile
=
function
(
err
,
stats
)
{
handleCompile
=
function
(
err
,
stats
)
{
if
(
err
||
stats
.
hasErrors
()
||
stats
.
hasWarnings
())
{
if
(
err
||
stats
.
hasErrors
()
||
stats
.
hasWarnings
())
{
process
.
exit
(
1
);
process
.
exit
(
1
);
...
...
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