react_on_rails 9.0.0.rc.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -2
- data/README.md +2 -2
- data/lib/react_on_rails/version.rb +1 -1
- data/package.json +1 -1
- data/rakelib/run_rspec.rake +2 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 726ec46ad50d1fe90c1362e3b500edc55c9c7061
|
4
|
+
data.tar.gz: '0882d017eeafe5a267fced472d736e248ef53294'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 869d84250e0b3e582100bb91bcd0e038746fad8d1badbeec51a05ac202a48c5f36bfca545db2453820bb591d7aeb9a23fcb38c30d3864d30403c2e526971184e
|
7
|
+
data.tar.gz: 6f2e9bf6b123f2f6cd86fee23f8482d303e56565f23b0c86fd5de1033a6942a25bc78bca4ef677f036ec7e540e3706926f0071496bcaac66e142f287b1ec78de
|
data/CHANGELOG.md
CHANGED
@@ -14,6 +14,8 @@ Changes since last non-beta release.
|
|
14
14
|
## 9.0 from 8.x. Upgrade Instructions
|
15
15
|
All 9.0.0 beta versions can be viewed in [PR 908](https://github.com/shakacode/react_on_rails/pull/908)
|
16
16
|
|
17
|
+
For an example of upgrading, see [react-webpack-rails-tutorial/pull/416](https://github.com/shakacode/react-webpack-rails-tutorial/pull/416).
|
18
|
+
|
17
19
|
- Breaking Configuration Changes
|
18
20
|
1. Added `config.node_modules_location` which defaults to `""` if Webpacker is installed. You may want to set this to 'client'` to `config/initializers/react_on_rails.rb` to keep your node_modules inside of `/client`
|
19
21
|
2. Renamed
|
@@ -35,8 +37,8 @@ gem "webpacker"
|
|
35
37
|
- hotReloadingPort ==> settings.dev_server.port
|
36
38
|
- hmr ==> settings.dev_server.hmr
|
37
39
|
- manifest ==> Remove this one. We use the default for Webpack of manifest.json
|
38
|
-
- env ==> Use `const { env } = require('process')
|
39
|
-
- devBuild ==> Use `const devBuild = process.env.NODE_ENV !== 'production'
|
40
|
+
- env ==> Use `const { env } = require('process');`
|
41
|
+
- devBuild ==> Use `const devBuild = process.env.NODE_ENV !== 'production';`
|
40
42
|
|
41
43
|
- Edit your Webpack.config files:
|
42
44
|
- Change your Webpack output to be like:
|
@@ -44,6 +46,7 @@ gem "webpacker"
|
|
44
46
|
const webpackConfigLoader = require('react-on-rails/webpackConfigLoader');
|
45
47
|
const configPath = resolve('..', 'config');
|
46
48
|
const { output, settings } = webpackConfigLoader(configPath);
|
49
|
+
const hmr = settings.dev_server.hmr;
|
47
50
|
const devBuild = process.env.NODE_ENV !== 'production';
|
48
51
|
|
49
52
|
output: {
|
@@ -64,6 +67,9 @@ gem "webpacker"
|
|
64
67
|
```
|
65
68
|
|
66
69
|
- Find your `webpacker_lite.yml` and rename it to `webpacker.yml`
|
70
|
+
- Consider copying a default webpacker.yml setup such as https://github.com/shakacode/react-on-rails-v9-rc-generator/blob/master/config/webpacker.yml
|
71
|
+
- If you are not using the webpacker webpacker setup, be sure to put in `compile: false` in the `default` section.
|
72
|
+
- Alternately, if you are updating from webpacker_lite, you can manually change these:
|
67
73
|
- Add a default setting
|
68
74
|
```
|
69
75
|
cache_manifest: false
|
data/README.md
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
[rails/webpacker](https://github.com/rails/webpacker) just shipped 3.0. This now enables me to ship version 9.0. See [PR #908](https://github.com/shakacode/react_on_rails/pull/908) for more details.
|
6
6
|
|
7
|
-
# React on Rails v9
|
7
|
+
# React on Rails v9 is based on Webpacker 3.0!
|
8
8
|
|
9
9
|
* See the updated [Tutorial](https://github.com/shakacode/react_on_rails/blob/rails-webpacker/docs/tutorial.md).
|
10
|
-
*
|
10
|
+
* See the [CHANGELOG.md](https://github.com/shakacode/react_on_rails/blob/rails-webpacker/CHANGELOG.md) for migration instructions.
|
11
11
|
|
12
12
|
## Steps to a New App with rails/webpacker v3 plus React on Rails v9.beta:
|
13
13
|
1. New Rails app: `rails new my-app --webpack=react`. `cd` into the directory.
|
data/package.json
CHANGED
data/rakelib/run_rspec.rake
CHANGED
@@ -21,7 +21,8 @@ namespace :run_rspec do
|
|
21
21
|
desc "Run RSpec with rails32 gemfile"
|
22
22
|
task :gem_rails32 do
|
23
23
|
rspec_args = "spec/react_on_rails --exclude-pattern "\
|
24
|
-
"\"**/generators/*_spec.rb,**/
|
24
|
+
"\"**/generators/*_spec.rb,**/utils_spec.rb,"\
|
25
|
+
"**/webpack_assets_status_checker_spec.rb,**/test_helper/*_spec.rb\""
|
25
26
|
run_tests_in("",
|
26
27
|
rspec_args: rspec_args,
|
27
28
|
env_vars: "BUNDLE_GEMFILE=spec/dummy_no_webpacker/Gemfile.rails32")
|
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: 9.0.0
|
4
|
+
version: 9.0.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: 2017-09-
|
11
|
+
date: 2017-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rainbow
|
@@ -466,9 +466,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
466
466
|
version: 2.0.0
|
467
467
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
468
468
|
requirements:
|
469
|
-
- - "
|
469
|
+
- - ">="
|
470
470
|
- !ruby/object:Gem::Version
|
471
|
-
version:
|
471
|
+
version: '0'
|
472
472
|
requirements: []
|
473
473
|
rubyforge_project:
|
474
474
|
rubygems_version: 2.6.12
|