Conversation
63074b5 to
8401c9d
Compare
|
Some comments. Reviewed 39 of 39 files at r1. lib/generators/USAGE, line 3 [r1] (raw file): lib/generators/react_on_rails/templates/base/base/app/views/hello_world/index.html.erb.tt, line 2 [r1] (raw file): lib/generators/react_on_rails/templates/base/base/client/webpack.config.js, line 38 [r1] (raw file): lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb.tt, line 14 [r1] (raw file): This needs to be "" if not server rendering. search code for server_bundle_js_file and you'll see lib/generators/react_on_rails/templates/redux/base/client/app/bundles/HelloWorld/startup/HelloWorldApp.jsx.tt, line 11 [r1] (raw file): also need to always pass the lib/generators/react_on_rails/templates/redux/base/client/app/bundles/HelloWorld/startup/HelloWorldApp.jsx.tt, line 12 [r1] (raw file): const store = ReactOnRails.getStore("myStore"); that way you can have multiple react components use the same store lib/generators/react_on_rails/templates/redux/base/client/app/bundles/HelloWorld/startup/HelloWorldApp.jsx.tt, line 22 [r1] (raw file): Comments from Reviewable |
|
lib/generators/react_on_rails/templates/base/base/client/webpack.config.js, line 38 [r1] (raw file): Comments from Reviewable |
|
lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb.tt, line 14 [r1] (raw file): Comments from Reviewable |
|
lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb.tt, line 14 [r1] (raw file): and Now I think we have a few options.
I'm personally in favor of just going for a single config since most people will just be putting the entire bundle in their header which is awesome with turbolinks. And if you need to optmize, then you can still do vendor chunks as needed which would still play nice with all of this. Comments from Reviewable |
|
lib/generators/USAGE, line 3 [r1] (raw file): Comments from Reviewable |
0ee40ba to
aa3d80f
Compare
|
Just changed the webpack compilation checks for the tests. Now it just checks to see if any stale files exist and then runs a new config variable we added if they do. we default to 'npm run build'. |
|
Got some questions. Also Please see https://github.com/shakacode/react_on_rails/blob/master/docs%2Fcontributor-info%2Fcontributing.md. Notably, we need a changelog entry. Review status: 40 of 48 files reviewed at latest revision, 8 unresolved discussions. Comments from Reviewable |
|
@jbhatab Is this almost ready? |
|
Reviewed 1 of 39 files at r1, 4 of 12 files at r2, 7 of 11 files at r3. lib/react_on_rails.rb, line 17 [r3] (raw file): lib/generators/react_on_rails/templates/base/base/package.json.tt, line 12 [r1] (raw file): lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb.tt, line 14 [r1] (raw file): lib/generators/react_on_rails/templates/redux/base/client/app/bundles/HelloWorld/startup/HelloWorldApp.jsx.tt, line 11 [r1] (raw file): lib/generators/react_on_rails/templates/redux/base/client/app/bundles/HelloWorld/startup/HelloWorldApp.jsx.tt, line 12 [r1] (raw file): lib/react_on_rails/test_helper.rb, line 57 [r3] (raw file): lib/react_on_rails/test_helper/ensure_assets_compiled.rb, line 49 [r3] (raw file): Comments from Reviewable |
|
Reviewed 26 of 39 files at r1, 10 of 12 files at r2, 8 of 11 files at r3. lib/generators/react_on_rails/templates/base/base/app/views/hello_world/index.html.erb.tt, line 2 [r1] (raw file): Comments from Reviewable |
|
lib/react_on_rails.rb, line 17 [r3] (raw file): Comments from Reviewable |
|
lib/generators/react_on_rails/templates/base/base/package.json.tt, line 12 [r1] (raw file): Comments from Reviewable |
|
lib/generators/react_on_rails/templates/base/base/app/views/hello_world/index.html.erb.tt, line 2 [r1] (raw file): Comments from Reviewable |
|
lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb.tt, line 14 [r1] (raw file): Comments from Reviewable |
|
lib/generators/react_on_rails/templates/redux/base/client/app/bundles/HelloWorld/startup/HelloWorldApp.jsx.tt, line 12 [r1] (raw file): Comments from Reviewable |
|
lib/generators/react_on_rails/templates/redux/base/client/app/bundles/HelloWorld/startup/HelloWorldApp.jsx.tt, line 22 [r1] (raw file): Comments from Reviewable |
8397068 to
7dcc845
Compare
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Switched from Express to Fastify for improved performance and efficiency. - **Bug Fixes** - Enhanced error handling in the application to prevent unhandled promise rejections. - Improved file upload handling and error messages. - **Tests** - Refactored test cases to align with the new dependencies and functionality, enhancing type safety. - **Chores** - Updated ESLint configuration to allow the use of `for-of` loops and added rules for better promise handling. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Alexey Romanov <[email protected]>
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Switched from Express to Fastify for improved performance and efficiency. - **Bug Fixes** - Enhanced error handling in the application to prevent unhandled promise rejections. - Improved file upload handling and error messages. - **Tests** - Refactored test cases to align with the new dependencies and functionality, enhancing type safety. - **Chores** - Updated ESLint configuration to allow the use of `for-of` loops and added rules for better promise handling. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Alexey Romanov <[email protected]>
This change is