-
Notifications
You must be signed in to change notification settings - Fork 490
Conversation
2c624b9
to
e9d87b1
Compare
e9d87b1
to
544ae2b
Compare
@wmonk , things are getting green - yay! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work @DorianGrey 🎉
I have some comments that need to be addressed to get this fully finished, but they shouldn't be very big.
cd "$root_path"/packages/create-react-app | ||
cli_path=$PWD/`npm pack` | ||
cd "$temp_app_path" | ||
npx create-react-app --scripts-version=1.0.17 test-app-version-number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think --scripts-version
here will install react-scripts
right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test suite is disabled for now.
# ****************************************************************************** | ||
|
||
cd "$temp_app_path" | ||
create_react_app --scripts-version=0.4.0 test-app-version-number | ||
cd test-app-version-number | ||
npx create-react-app --use-npm --scripts-version=1.0.17 test-use-npm-flag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
checkDependencies | ||
|
||
# ****************************************************************************** | ||
# Test --scripts-version with a tarball url | ||
# ****************************************************************************** | ||
|
||
cd "$temp_app_path" | ||
create_react_app --scripts-version=https://registry.npmjs.org/react-scripts/-/react-scripts-0.4.0.tgz test-app-tarball-url | ||
npx create-react-app --scripts-version=https://registry.npmjs.org/react-scripts/-/react-scripts-1.0.17.tgz test-app-tarball-url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
|
||
# Check corresponding scripts version is installed. | ||
exists node_modules/react-scripts | ||
grep '"version": "0.4.0"' node_modules/react-scripts/package.json | ||
[ ! -e "yarn.lock" ] && echo "yarn.lock correctly does not exist" | ||
grep '"version": "1.0.17"' node_modules/react-scripts/package.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our version is different now
tasks/e2e-simple.sh
Outdated
@@ -284,40 +212,39 @@ function verify_module_scope { | |||
echo "{}" >> sample.json | |||
|
|||
# Save App.js, we're going to modify it | |||
cp src/App.tsx src/App.tsx.bak | |||
cp src/App.js src/App.js.bak |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the bit that shows we're installing the wrong version of react-scripts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
tasks/e2e-simple.sh
Outdated
# Install the app in a temporary location | ||
cd $temp_app_path | ||
create_react_app --scripts-version="$scripts_path" test-app | ||
npx create-react-app test-app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the bit that needs to use the scripts_path
variable for --scripts-version
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Due to the new strategy with a local registry, it seems that we only need to provide --scripts-version=react-scripts-ts
here.
.travis.yml
Outdated
@@ -16,13 +12,17 @@ cache: | |||
install: true | |||
script: | |||
- 'if [ $TEST_SUITE = "simple" ]; then tasks/e2e-simple.sh; fi' | |||
- 'if [ $TEST_SUITE = "installs" ]; then tasks/e2e-installs.sh; fi' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can just keep e2e-simple
as the others test a lot of stuff from create-react-app
we don't care about.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
install
is disabled for now.
.travis.yml
Outdated
# TODO: reenable after we ship 1.0. | ||
# - node_js: 6 | ||
# env: USE_YARN=yes TEST_SUITE=simple | ||
- TEST_SUITE=installs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can just keep simple
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
install
is disabled for now.
.travis.yml
Outdated
- TEST_SUITE=kitchensink | ||
matrix: | ||
include: | ||
- node_js: 0.10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we want this line, more for testing create-react-app
as far as I know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Thanks for the review, I'm looking to fix these issue after my weekend vacation. |
I've disabled the |
0a1f4ea
to
169a401
Compare
Awesome work @DorianGrey - is this ready to be merged? |
Suppose, yes. We might have to deal with |
A "work in progress" for now - seems that not all changes made it into the merge with 1.1.1 because we to separate the stuff that should go into
react-scripts
2.0 from what is required in 1.x.Just testing this for the moment and see how far I may get ...