Commit 8f28c56e authored by Dan Abramov's avatar Dan Abramov
Browse files

Try to fix e2e

parent 26464096
Showing with 9 additions and 9 deletions
+9 -9
...@@ -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`
# ****************************************************************************** # ******************************************************************************
......
...@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment