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
8f28c56e
Commit
8f28c56e
authored
8 years ago
by
Dan Abramov
Browse files
Options
Download
Email Patches
Plain Diff
Try to fix e2e
parent
26464096
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/cra.sh
+3
-3
tasks/cra.sh
tasks/e2e.sh
+6
-6
tasks/e2e.sh
with
9 additions
and
9 deletions
+9
-9
tasks/cra.sh
+
3
-
3
View file @
8f28c56e
...
@@ -58,10 +58,10 @@ root_path=$PWD
...
@@ -58,10 +58,10 @@ root_path=$PWD
# Do not overwrite any files in the current folder.
# Do not overwrite any files in the current folder.
clean_path
=
`
mktemp
-d
2>/dev/null
||
mktemp
-d
-t
'clean_path'
`
clean_path
=
`
mktemp
-d
2>/dev/null
||
mktemp
-d
-t
'clean_path'
`
# Copy some of the project files to the temporary folder.
# Copy some of the
react-scripts
project files to the temporary folder.
# Exclude folders that definitely won’t be part of the package from processing.
# Exclude folders that definitely won’t be part of the package from processing.
# We will strip the dev-only code there, `npm pack`, and copy the package back.
# We will strip the dev-only code there, `npm pack`, and copy the package back.
cd
$root_path
cd
$root_path
/packages/react-scripts
rsync
-av
--exclude
=
'.git'
--exclude
=
$clean_path
\
rsync
-av
--exclude
=
'.git'
--exclude
=
$clean_path
\
--exclude
=
'node_modules'
--exclude
=
'build'
\
--exclude
=
'node_modules'
--exclude
=
'build'
\
'./'
$clean_path
>
/dev/null
'./'
$clean_path
>
/dev/null
...
@@ -76,7 +76,7 @@ for file in $files; do
...
@@ -76,7 +76,7 @@ for file in $files; do
done
done
# Finally, pack react-scripts
# Finally, pack react-scripts
cp
-rf
$root_path
/node_modules
$clean_path
cp
-rf
$root_path
/
packages/react-scripts/
node_modules
$clean_path
scripts_path
=
$clean_path
/
`
npm pack
`
scripts_path
=
$clean_path
/
`
npm pack
`
# ******************************************************************************
# ******************************************************************************
...
...
This diff is collapsed.
Click to expand it.
tasks/e2e.sh
+
6
-
6
View file @
8f28c56e
...
@@ -85,7 +85,7 @@ npm start -- --smoke-test
...
@@ -85,7 +85,7 @@ npm start -- --smoke-test
# ******************************************************************************
# ******************************************************************************
# Pack CLI (it doesn't need cleaning)
# Pack CLI (it doesn't need cleaning)
cd
packages/create-react-app
cd
$root_path
/
packages/create-react-app
cli_path
=
$PWD
/
`
npm pack
`
cli_path
=
$PWD
/
`
npm pack
`
# Packing react-scripts takes more work because we want to clean it up first.
# Packing react-scripts takes more work because we want to clean it up first.
...
@@ -93,10 +93,10 @@ cli_path=$PWD/`npm pack`
...
@@ -93,10 +93,10 @@ cli_path=$PWD/`npm pack`
# Do not overwrite any files in the current folder.
# Do not overwrite any files in the current folder.
clean_path
=
`
mktemp
-d
2>/dev/null
||
mktemp
-d
-t
'clean_path'
`
clean_path
=
`
mktemp
-d
2>/dev/null
||
mktemp
-d
-t
'clean_path'
`
# Copy some of the project files to the temporary folder.
# Copy some of the
react-scripts
project files to the temporary folder.
# Exclude folders that definitely won’t be part of the package from processing.
# Exclude folders that definitely won’t be part of the package from processing.
# We will strip the dev-only code there, `npm pack`, and copy the package back.
# We will strip the dev-only code there, `npm pack`, and copy the package back.
cd
$root_path
cd
$root_path
/packages/react-scripts
rsync
-av
--exclude
=
'.git'
--exclude
=
$clean_path
\
rsync
-av
--exclude
=
'.git'
--exclude
=
$clean_path
\
--exclude
=
'node_modules'
--exclude
=
'build'
\
--exclude
=
'node_modules'
--exclude
=
'build'
\
'./'
$clean_path
>
/dev/null
'./'
$clean_path
>
/dev/null
...
@@ -183,7 +183,7 @@ npm start -- --smoke-test
...
@@ -183,7 +183,7 @@ npm start -- --smoke-test
# ******************************************************************************
# ******************************************************************************
# Test --scripts-version
is
a version number
# Test --scripts-version
with
a version number
# ******************************************************************************
# ******************************************************************************
cd
$temp_app_path
cd
$temp_app_path
...
@@ -195,7 +195,7 @@ test -e node_modules/react-scripts
...
@@ -195,7 +195,7 @@ test -e node_modules/react-scripts
grep
'"version": "0.4.0"'
node_modules/react-scripts/package.json
grep
'"version": "0.4.0"'
node_modules/react-scripts/package.json
# ******************************************************************************
# ******************************************************************************
# Test --scripts-version
is
a tarball url
# Test --scripts-version
with
a tarball url
# ******************************************************************************
# ******************************************************************************
cd
$temp_app_path
cd
$temp_app_path
...
@@ -207,7 +207,7 @@ test -e node_modules/react-scripts
...
@@ -207,7 +207,7 @@ test -e node_modules/react-scripts
grep
'"version": "0.4.0"'
node_modules/react-scripts/package.json
grep
'"version": "0.4.0"'
node_modules/react-scripts/package.json
# ******************************************************************************
# ******************************************************************************
# Test --scripts-version
is
a custom fork of react-scripts
# Test --scripts-version
with
a custom fork of react-scripts
# ******************************************************************************
# ******************************************************************************
cd
$temp_app_path
cd
$temp_app_path
...
...
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