react_on_rails 12.0.5.beta.0 → 12.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +11 -1
- data/.eslintrc +2 -0
- data/.prettierrc +0 -3
- data/.rubocop.yml +38 -1
- data/CHANGELOG.md +22 -13
- data/CONTRIBUTING.md +3 -2
- data/Gemfile.development_dependencies +3 -2
- data/README.md +68 -65
- data/docs/{basics → additional-details}/generator-details.md +1 -6
- data/docs/{outdated → additional-details}/manual-installation-overview.md +6 -6
- data/docs/{basics → additional-details}/migrating-from-react-rails.md +0 -0
- data/docs/{additional-reading → additional-details}/recommended-project-structure.md +0 -0
- data/docs/{additional-reading → additional-details}/updating-dependencies.md +0 -0
- data/docs/additional-details/upgrade-webpacker-v3-to-v4.md +10 -0
- data/docs/api/javascript-api.md +2 -2
- data/docs/api/redux-store-api.md +3 -3
- data/docs/api/view-helpers-api.md +7 -8
- data/docs/basics/client-vs-server-rendering.md +3 -3
- data/docs/basics/configuration.md +42 -25
- data/docs/basics/deployment.md +2 -2
- data/docs/{outdated → basics}/how-react-on-rails-works.md +8 -9
- data/docs/basics/installation-into-an-existing-rails-app.md +2 -2
- data/docs/basics/react-server-rendering.md +3 -3
- data/docs/basics/rspec-configuration.md +10 -10
- data/docs/{tutorial.md → basics/tutorial.md} +9 -9
- data/docs/basics/upgrading-react-on-rails.md +7 -7
- data/docs/basics/webpack-configuration.md +4 -6
- data/docs/contributor-info/linters.md +5 -6
- data/docs/contributor-info/pull-requests.md +2 -4
- data/docs/contributor-info/releasing.md +1 -1
- data/docs/{additional-reading → deployment}/elastic-beanstalk.md +0 -0
- data/docs/{basics → deployment}/heroku-deployment.md +0 -0
- data/docs/home.md +382 -0
- data/docs/{additional-reading → javascript}/angular-js-integration-migration.md +0 -0
- data/docs/{additional-reading → javascript}/asset-pipeline.md +0 -0
- data/docs/{additional-reading → javascript}/capistrano-deployment.md +0 -0
- data/docs/{outdated → javascript}/code-splitting.md +3 -3
- data/docs/{additional-reading → javascript}/converting-from-custom-webpack-config-to-rails-webpacker-config.md +3 -3
- data/docs/{additional-reading → javascript}/credits.md +0 -0
- data/docs/{additional-reading → javascript}/foreman-issues.md +0 -0
- data/docs/{additional-reading → javascript}/images.md +5 -6
- data/docs/{additional-reading → javascript}/node-dependencies-and-npm.md +0 -0
- data/docs/{additional-reading → javascript}/react-and-redux.md +0 -0
- data/docs/{additional-reading → javascript}/react-helmet.md +0 -0
- data/docs/{additional-reading → javascript}/react-router.md +0 -0
- data/docs/{additional-reading → javascript}/server-rendering-tips.md +0 -0
- data/docs/{additional-reading → javascript}/troubleshooting-when-using-webpacker.md +0 -0
- data/docs/{additional-reading → javascript}/webpack-v1-notes.md +0 -0
- data/docs/{additional-reading → javascript}/webpack.md +0 -0
- data/docs/{articles.md → misc/articles.md} +1 -1
- data/docs/misc/doctrine.md +5 -5
- data/docs/{coding-style → misc}/style.md +0 -0
- data/docs/{additional-reading → misc}/tips.md +0 -0
- data/docs/outdated/deferred-rendering.md +39 -0
- data/docs/outdated/rails-assets-relative-paths.md +3 -3
- data/docs/outdated/rails-assets.md +8 -8
- data/docs/outdated/rails3.md +2 -2
- data/docs/rails-webpacker-react-integration-options.md +182 -0
- data/docs/{additional-reading → rails}/convert-rails-5-api-only-app.md +1 -1
- data/docs/{additional-reading → rails}/rails-engine-integration.md +0 -0
- data/docs/{additional-reading → rails}/rails_view_rendering_from_inline_javascript.md +0 -0
- data/docs/{additional-reading → rails}/turbolinks.md +0 -0
- data/docs/testimonials/testimonials.md +6 -6
- data/lib/generators/react_on_rails/dev_tests_generator.rb +1 -1
- data/lib/generators/react_on_rails/templates/dev_tests/spec/rails_helper.rb +4 -1
- data/lib/generators/react_on_rails/templates/dev_tests/spec/{features → system}/hello_world_spec.rb +2 -2
- data/lib/react_on_rails/helper.rb +5 -0
- data/lib/react_on_rails/utils.rb +16 -2
- data/lib/react_on_rails/version.rb +1 -1
- data/lib/react_on_rails/webpacker_utils.rb +5 -1
- data/lib/tasks/assets.rake +14 -5
- data/package.json +24 -29
- data/rakelib/release.rake +19 -3
- data/rakelib/task_helpers.rb +15 -2
- data/yarn.lock +2272 -4960
- metadata +41 -38
- data/docs/additional-reading/upgrade-webpacker-v3-to-v4.md +0 -10
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: react_on_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.
|
4
|
+
version: 12.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Gordon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -165,67 +165,70 @@ files:
|
|
165
165
|
- app/helpers/react_on_rails_helper.rb
|
166
166
|
- book.json
|
167
167
|
- docker-compose.yml
|
168
|
-
- docs/additional-
|
169
|
-
- docs/additional-
|
170
|
-
- docs/additional-
|
171
|
-
- docs/additional-
|
172
|
-
- docs/additional-
|
173
|
-
- docs/additional-
|
174
|
-
- docs/additional-reading/elastic-beanstalk.md
|
175
|
-
- docs/additional-reading/foreman-issues.md
|
176
|
-
- docs/additional-reading/images.md
|
177
|
-
- docs/additional-reading/node-dependencies-and-npm.md
|
178
|
-
- docs/additional-reading/rails-engine-integration.md
|
179
|
-
- docs/additional-reading/rails_view_rendering_from_inline_javascript.md
|
180
|
-
- docs/additional-reading/react-and-redux.md
|
181
|
-
- docs/additional-reading/react-helmet.md
|
182
|
-
- docs/additional-reading/react-router.md
|
183
|
-
- docs/additional-reading/recommended-project-structure.md
|
184
|
-
- docs/additional-reading/server-rendering-tips.md
|
185
|
-
- docs/additional-reading/tips.md
|
186
|
-
- docs/additional-reading/troubleshooting-when-using-webpacker.md
|
187
|
-
- docs/additional-reading/turbolinks.md
|
188
|
-
- docs/additional-reading/updating-dependencies.md
|
189
|
-
- docs/additional-reading/upgrade-webpacker-v3-to-v4.md
|
190
|
-
- docs/additional-reading/webpack-v1-notes.md
|
191
|
-
- docs/additional-reading/webpack.md
|
168
|
+
- docs/additional-details/generator-details.md
|
169
|
+
- docs/additional-details/manual-installation-overview.md
|
170
|
+
- docs/additional-details/migrating-from-react-rails.md
|
171
|
+
- docs/additional-details/recommended-project-structure.md
|
172
|
+
- docs/additional-details/updating-dependencies.md
|
173
|
+
- docs/additional-details/upgrade-webpacker-v3-to-v4.md
|
192
174
|
- docs/api/javascript-api.md
|
193
175
|
- docs/api/redux-store-api.md
|
194
176
|
- docs/api/view-helpers-api.md
|
195
|
-
- docs/articles.md
|
196
177
|
- docs/basics/client-vs-server-rendering.md
|
197
178
|
- docs/basics/configuration.md
|
198
179
|
- docs/basics/deployment.md
|
199
|
-
- docs/basics/generator-details.md
|
200
|
-
- docs/basics/heroku-deployment.md
|
201
180
|
- docs/basics/hmr-and-hot-reloading-with-the-webpack-dev-server.md
|
181
|
+
- docs/basics/how-react-on-rails-works.md
|
202
182
|
- docs/basics/i18n.md
|
203
183
|
- docs/basics/installation-into-an-existing-rails-app.md
|
204
|
-
- docs/basics/migrating-from-react-rails.md
|
205
184
|
- docs/basics/minitest-configuration.md
|
206
185
|
- docs/basics/react-server-rendering.md
|
207
186
|
- docs/basics/render-functions-and-railscontext.md
|
208
187
|
- docs/basics/rspec-configuration.md
|
188
|
+
- docs/basics/tutorial.md
|
209
189
|
- docs/basics/upgrading-react-on-rails.md
|
210
190
|
- docs/basics/webpack-configuration.md
|
211
|
-
- docs/coding-style/style.md
|
212
191
|
- docs/contributor-info/errors-with-hooks.md
|
213
192
|
- docs/contributor-info/generator-testing.md
|
214
193
|
- docs/contributor-info/linters.md
|
215
194
|
- docs/contributor-info/pull-requests.md
|
216
195
|
- docs/contributor-info/releasing.md
|
196
|
+
- docs/deployment/elastic-beanstalk.md
|
197
|
+
- docs/deployment/heroku-deployment.md
|
198
|
+
- docs/home.md
|
199
|
+
- docs/javascript/angular-js-integration-migration.md
|
200
|
+
- docs/javascript/asset-pipeline.md
|
201
|
+
- docs/javascript/capistrano-deployment.md
|
202
|
+
- docs/javascript/code-splitting.md
|
203
|
+
- docs/javascript/converting-from-custom-webpack-config-to-rails-webpacker-config.md
|
204
|
+
- docs/javascript/credits.md
|
205
|
+
- docs/javascript/foreman-issues.md
|
206
|
+
- docs/javascript/images.md
|
207
|
+
- docs/javascript/node-dependencies-and-npm.md
|
208
|
+
- docs/javascript/react-and-redux.md
|
209
|
+
- docs/javascript/react-helmet.md
|
210
|
+
- docs/javascript/react-router.md
|
211
|
+
- docs/javascript/server-rendering-tips.md
|
212
|
+
- docs/javascript/troubleshooting-when-using-webpacker.md
|
213
|
+
- docs/javascript/webpack-v1-notes.md
|
214
|
+
- docs/javascript/webpack.md
|
215
|
+
- docs/misc/articles.md
|
217
216
|
- docs/misc/code_of_conduct.md
|
218
217
|
- docs/misc/doctrine.md
|
219
|
-
- docs/
|
220
|
-
- docs/
|
221
|
-
- docs/outdated/
|
218
|
+
- docs/misc/style.md
|
219
|
+
- docs/misc/tips.md
|
220
|
+
- docs/outdated/deferred-rendering.md
|
222
221
|
- docs/outdated/rails-assets-relative-paths.md
|
223
222
|
- docs/outdated/rails-assets.md
|
224
223
|
- docs/outdated/rails3.md
|
224
|
+
- docs/rails-webpacker-react-integration-options.md
|
225
|
+
- docs/rails/convert-rails-5-api-only-app.md
|
226
|
+
- docs/rails/rails-engine-integration.md
|
227
|
+
- docs/rails/rails_view_rendering_from_inline_javascript.md
|
228
|
+
- docs/rails/turbolinks.md
|
225
229
|
- docs/testimonials/hvmn.md
|
226
230
|
- docs/testimonials/resortpass.md
|
227
231
|
- docs/testimonials/testimonials.md
|
228
|
-
- docs/tutorial.md
|
229
232
|
- jest.config.js
|
230
233
|
- lib/generators/USAGE
|
231
234
|
- lib/generators/react_on_rails/base_generator.rb
|
@@ -246,10 +249,10 @@ files:
|
|
246
249
|
- lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb
|
247
250
|
- lib/generators/react_on_rails/templates/dev_tests/.eslintrc
|
248
251
|
- lib/generators/react_on_rails/templates/dev_tests/.rspec
|
249
|
-
- lib/generators/react_on_rails/templates/dev_tests/spec/features/hello_world_spec.rb
|
250
252
|
- lib/generators/react_on_rails/templates/dev_tests/spec/rails_helper.rb
|
251
253
|
- lib/generators/react_on_rails/templates/dev_tests/spec/simplecov_helper.rb
|
252
254
|
- lib/generators/react_on_rails/templates/dev_tests/spec/spec_helper.rb
|
255
|
+
- lib/generators/react_on_rails/templates/dev_tests/spec/system/hello_world_spec.rb
|
253
256
|
- lib/generators/react_on_rails/templates/redux/base/app/javascript/bundles/HelloWorld/actions/helloWorldActionCreators.js
|
254
257
|
- lib/generators/react_on_rails/templates/redux/base/app/javascript/bundles/HelloWorld/components/HelloWorld.jsx
|
255
258
|
- lib/generators/react_on_rails/templates/redux/base/app/javascript/bundles/HelloWorld/constants/helloWorldConstants.js
|
@@ -326,9 +329,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
326
329
|
version: 2.5.0
|
327
330
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
328
331
|
requirements:
|
329
|
-
- - "
|
332
|
+
- - ">="
|
330
333
|
- !ruby/object:Gem::Version
|
331
|
-
version:
|
334
|
+
version: '0'
|
332
335
|
requirements: []
|
333
336
|
rubygems_version: 3.1.4
|
334
337
|
signing_key:
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# Upgrading rails/webpacker v3.5 to v4
|
2
|
-
|
3
|
-
The following steps can be followed to update a Webpacker v3.5 app to v4.
|
4
|
-
|
5
|
-
1. Update the gem `webpacker` and the package `@rails/webpacker`
|
6
|
-
1. Merge changes from the new default [.babelrc](../lib/install/config/.babelrc) to your `/.babelrc`. If you are using React, you need to add `"@babel/preset-react"`, to the list of `presets`.
|
7
|
-
1. Copy the file [.browserslistrc](../lib/install/config/.browserslistrc) to `/`.
|
8
|
-
1. Merge any differences between [config/webpacker.yml](../lib/install/config/webpacker.yml) and your `/config/webpacker.yml`.
|
9
|
-
|
10
|
-
Here is an [example commit of these changes](https://github.com/shakacode/react_on_rails-tutorial-v11/pull/1/files).
|