Using yarn instead of npm#715
Conversation
|
Lots of comments. Good start! Reviewed 54 of 54 files at r1. .travis.yml, line 9 at r1 (raw file):
should not be removed we want to support older versions of ruby and also ruby 2.4! CONTRIBUTING.md, line 99 at r1 (raw file):
Please double check on if there is a yarn link that we can use. package.json, line 59 at r1 (raw file):
where is flow? docs/additional-reading/node-dependencies-and-npm.md, line 9 at r1 (raw file):
this updates the dependencies I still use this with yarn Please investigate lib/generators/react_on_rails/dev_tests_generator.rb, line 33 at r1 (raw file):
why this change? yarn change? lib/react_on_rails/test_helper/node_process_launcher.rb, line 4 at r1 (raw file):
this will probably cause a lint error rubocop wants a guard clause spec/dummy/package.json, line 45 at r1 (raw file):
this is wrong all of this should be in spec/dummy/client/package.json spec/react_on_rails/generators/dev_tests_generator_spec.rb, line 27 at r1 (raw file):
Not sure on this one. Please explain. spec/react_on_rails/generators/install_generator_spec.rb, line 94 at r1 (raw file):
start? why change to load? Comments from Reviewable |
|
@squadette I'm going to wait to hear from you. I don't understand why you moved node_package. It doesn't make sense for react_on_rails to have a subdirectory called react-on-rails. Reviewed 68 of 68 files at r2. .gitignore, line 25 at r2 (raw file):
why this change? package.json, line 59 at r1 (raw file): Previously, justin808 (Justin Gordon) wrote…
@squadette Please try to answer my questions within https://reviewable.io/reviews/shakacode/react_on_rails/715#-KcntjgzwxQ2q74Nj54p Comments from Reviewable |
Of course. I had a theory, but looks like i"m wrong. I'll either move it back or explain why this change is needed. I'm still fighting :) |
a364732 to
d98bbe8
Compare
|
Review status: 43 of 54 files reviewed at latest revision, 10 unresolved discussions, some commit checks failed. .travis.yml, line 9 at r1 (raw file): Previously, justin808 (Justin Gordon) wrote…
Of course, it's just for my tests to be faster. Before the merge this part will be reverted. Thanks for the reminder. spec/dummy/package.json, line 45 at r1 (raw file): Previously, justin808 (Justin Gordon) wrote…
you're right, I remove this in a separate commit. Thank you, Comments from Reviewable |
|
@squadette Let me know when you're ready for more review. |
|
Review status: 41 of 57 files reviewed at latest revision, 10 unresolved discussions, some commit checks broke. .gitignore, line 25 at r2 (raw file): Previously, justin808 (Justin Gordon) wrote…
I think I've seen yarn creating those files, but maybe it's a false memory. .travis.yml, line 9 at r1 (raw file): Previously, squadette (Alexey Mahotkin) wrote…
returned all the versions. Tries to introduce 2.4.0, but that's too hard for now, there will be a separate PR. CONTRIBUTING.md, line 99 at r1 (raw file): Previously, justin808 (Justin Gordon) wrote…
Let's try to change to yarn link later. I don't understand exactly how yarn link works. package.json, line 59 at r1 (raw file): Previously, justin808 (Justin Gordon) wrote…
Merge issue. Thank you, docs/additional-reading/node-dependencies-and-npm.md, line 9 at r1 (raw file): Previously, justin808 (Justin Gordon) wrote…
To upgrade all dependencies, use lib/react_on_rails/test_helper/node_process_launcher.rb, line 4 at r1 (raw file): Previously, justin808 (Justin Gordon) wrote…
yep, fixed. spec/dummy/package.json, line 45 at r1 (raw file): Previously, squadette (Alexey Mahotkin) wrote…
fixed spec/react_on_rails/generators/dev_tests_generator_spec.rb, line 27 at r1 (raw file): Previously, justin808 (Justin Gordon) wrote…
It just checks for a string, and the string changed because of yarn syntax for modules in a directory. spec/react_on_rails/generators/install_generator_spec.rb, line 94 at r1 (raw file): Previously, justin808 (Justin Gordon) wrote…
This is taken from your commit cfc10a9#diff-08931bab4b6ac3bc6fa0986cadb6a576 :) If you don't like the wording then please change it as you wish. Comments from Reviewable |
58e22b6 to
5301e81
Compare
|
Update: Travis passed: https://travis-ci.org/squadette/react_on_rails/builds/202086175 @justin808, please consider merging this PR. Thank you, |
|
Review status: 42 of 54 files reviewed at latest revision, 10 unresolved discussions, some commit checks failed. lib/generators/react_on_rails/dev_tests_generator.rb, line 33 at r1 (raw file): Previously, justin808 (Justin Gordon) wrote…
yes. a syntax for module in a directory. Comments from Reviewable |
|
A few comments. Getting close! CC: @robwise @alexfedoseev Reviewed 14 of 66 files at r3. .travis.yml, line 41 at r3 (raw file):
0.19.1 but check maybe we best not specify the version and we'll get the latest package.json, line 86 at r3 (raw file):
what is this? this probably needs to be removed. eslint replaced jscs a while back. spec/dummy/client/package.json, line 66 at r3 (raw file):
remove jscs spec/dummy/client/package.json, line 69 at r3 (raw file):
get rid of jscs spec/react_on_rails/generators/install_generator_spec.rb, line 94 at r1 (raw file):
let's revert that line Comments from Reviewable |
5301e81 to
3f8db58
Compare
|
Review status: 48 of 54 files reviewed at latest revision, 5 unresolved discussions, some commit checks failed. .travis.yml, line 41 at r3 (raw file): Previously, justin808 (Justin Gordon) wrote…
0.20.3 even. (no we did not get the latest last time I tried. Plus it's better to control the testing environment. Comments from Reviewable |
25e9a00 to
bdf9e81
Compare
|
Thanks for the contribution! Great work! Reviewed 8 of 8 files at r4. Comments from Reviewable |
|
Btw, I've just migrated my project to Webpack 2.2.0. It required two trivial changes to webpack.config.js: Also, dedupePlugin needs to be removed, and tree shaking can enabled by After that, everything works at least for me. |
|
@squadette Yes, let's convert the whole project to be using Webpack 2.2.x! |
Here is preliminary pull-request for using yarn. It seems to be passing tests on my machine (the same as for vanilla npm).
Currently it fails in Travis because of yarnpkg/yarn#683 (comment)
I'm going to add
--mutex networkand try again. Please test this in your environments.NB: first two commits are mostly written by @justin808, but were improved/fixed by me. Justin, please feel free to adjust attribution before merging however you wish.
Thanks,
This change is