react_on_rails 9.0.0.beta.8 → 9.0.0.beta.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b37e03f8046df8e87fb888e436fbdf3dc2886f9
4
- data.tar.gz: 4c50d0400481d3814ba89d270ae0e81ab7ed1230
3
+ metadata.gz: 2ba6646e46775e165a0d0f7c8e43de2dad2eb1fc
4
+ data.tar.gz: c422212818cb28ef17dffd3a7da41410099dce0c
5
5
  SHA512:
6
- metadata.gz: cf5b00d1eb32e6d1ef0499a2b3c5cf066ef40d8b7acfb87189ff01183dddc3fd77c5522366fdc290a2dd78ec385b0d35e261d080a5200002329586f3455eb427
7
- data.tar.gz: 43febb1ff94bcc47fb725965141f528c0f8492cb1b8df87832d45b673703489a3a3cfdf10931dfdb1ec3ee6c053bfe1ae798fbf3a79e357f456f8b359f77ae7d
6
+ metadata.gz: bc8d53a1b6b89290382b2b12736116f33cf54d1bb7c8efb6f5b6ad45886bb534d4192709fb39fb7af11c2ae3ef0670477f36f8da7c9561ee835bc7efeb6e2b5d
7
+ data.tar.gz: 16e42224c49bbda250b2ecf3e23bb3eafb0d9f199d7991c0402433eafc48f38d8b4bb1175a35696493a54f244841f8c43e641e08e8107514943a8e05ade82656
data/CHANGELOG.md CHANGED
@@ -18,7 +18,7 @@ All 9.0.0 beta versions can be viewed in [PR 908](https://github.com/shakacode/r
18
18
 
19
19
  ```rb
20
20
  gem "webpacker", git: "https://github.com/shakacode/webpacker.git",
21
- branch: "issue-464-merge-webpacker-lite-into-webpacker-v2"
21
+ branch: "issue-464-merge-webpacker-lite-into-webpacker-v3"
22
22
  ```
23
23
 
24
24
  - Update for the renaming in the `WebpackConfigLoader` in your webpack configuration.
@@ -54,6 +54,10 @@ gem "webpacker", git: "https://github.com/shakacode/webpacker.git",
54
54
 
55
55
 
56
56
  - Find your `webpacker_lite.yml` and rename it to `webpacker.yml`
57
+ - Add a default setting
58
+ ```
59
+ custom_compile: true
60
+ ```
57
61
  - Add a section like this under your development env:
58
62
  ```
59
63
  dev_server:
@@ -75,16 +79,20 @@ gem "webpacker", git: "https://github.com/shakacode/webpacker.git",
75
79
 
76
80
 
77
81
  #### Troubleshooting
78
- If you want to skip using the dev server (as is current for beta.3 and below), then be sure to either
79
- set WEBPACKER_DEV_SERVER=FALSE or comment out the dev_server section of your `config/webpacker.yml` file.
80
-
81
- Otherwise, you'll get an error that the bundle can't be found, because your Rails server thinks you are
82
- deploying assets using the webpack-dev-server.
82
+ * Be sure to
83
+
83
84
 
84
85
 
85
86
  ### [9.0.0]
86
87
  *Diffs for the beta to master*
87
88
 
89
+ ### [9.0.0-beta.9]
90
+ - Fixes precompile task going to Webpacker's. You need to set `custom_compile: true` in your `webpacker.yml`.
91
+ - Changed webpack-bundle.js name to hello-world-bundle.js
92
+ - Update for latest from rails/webpacker
93
+ gem "webpacker", git: "https://github.com/shakacode/webpacker.git",
94
+ branch: "issue-464-merge-webpacker-lite-into-webpacker-v3"
95
+
88
96
  ### [9.0.0-beta.8]
89
97
  - bugfix for server rendering
90
98
 
@@ -729,7 +737,8 @@ Best done with Object destructing:
729
737
  - Fix several generator related issues.
730
738
 
731
739
  [Unreleased]: https://github.com/shakacode/react_on_rails/compare/rails-webpacker...9.0.0-beta.8
732
- [9.0.0]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.8...master
740
+ [9.0.0]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.9...master
741
+ [9.0.0-beta.9]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.9...9.0.0-beta.8
733
742
  [9.0.0-beta.8]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.8...9.0.0-beta.7
734
743
  [9.0.0-beta.7]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.7...9.0.0-beta.6
735
744
  [9.0.0-beta.6]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.6...9.0.0-beta.5
data/Gemfile CHANGED
@@ -39,7 +39,7 @@ gem "launchy"
39
39
  gem "poltergeist"
40
40
  gem "selenium-webdriver"
41
41
  gem "webpacker", git: "https://github.com/shakacode/webpacker.git",
42
- branch: "issue-464-merge-webpacker-lite-into-webpacker-v2"
42
+ branch: "issue-464-merge-webpacker-lite-into-webpacker-v3"
43
43
 
44
44
  # TODO: remove once we get out of beta.
45
45
  # gem 'webpacker', path: "../../forks/webpacker"
@@ -138,7 +138,7 @@ module.exports = {
138
138
  ],
139
139
 
140
140
  output: {
141
- filename: 'webpack-bundle.js',
141
+ filename: 'hello-world-bundle.js',
142
142
  path: '../app/assets/webpack'
143
143
  },
144
144
 
@@ -35,7 +35,7 @@ The following `config/react_on_rails.rb` settings **must** match your setup:
35
35
  config.generated_assets_dir = File.join(%w[public webpack], Rails.env)
36
36
 
37
37
  # Define the files we need to check for webpack compilation when running tests.
38
- config.webpack_generated_files = %w( webpack-bundle.js )
38
+ config.webpack_generated_files = %w( hello-world-bundle.js )
39
39
 
40
40
  # If you are using the ReactOnRails::TestHelper.configure_rspec_to_compile_assets(config)
41
41
  # with rspec then this controls what yarn command is run
@@ -17,7 +17,7 @@ static vs. hot is picked based on whether `ENV["REACT_ON_RAILS_ENV"] == "HOT"`
17
17
  <!-- This is to load the hot assets. -->
18
18
 
19
19
  <!-- Note, you can have multiple files here. It's an array. -->
20
- <%= env_javascript_include_tag(hot: ['http://localhost:3500/webpack-bundle.js]') %>
20
+ <%= env_javascript_include_tag(hot: ['http://localhost:3500/hello-world-bundle.js]') %>
21
21
 
22
22
  <!-- These do use turbolinks -->
23
23
  <%= env_javascript_include_tag(static: 'application_static',
@@ -75,7 +75,7 @@ module ReactOnRails
75
75
 
76
76
  gem 'mini_racer', platforms: :ruby
77
77
  gem 'webpacker', git: "https://github.com/shakacode/webpacker.git",
78
- branch: "issue-464-merge-webpacker-lite-into-webpacker-v2"
78
+ branch: "issue-464-merge-webpacker-lite-into-webpacker-v3"
79
79
  GEMS
80
80
  append_to_file("Gemfile",
81
81
  gems)
@@ -114,9 +114,9 @@ module ReactOnRails
114
114
 
115
115
  What to do next:
116
116
 
117
- - Include your webpack assets to your application layout.
117
+ - Include your webpack assets to your application layout. Change hello-world-bundle as needed.
118
118
 
119
- <%= javascript_pack_tag 'main' %>
119
+ <%= javascript_pack_tag 'hello-world-bundle' %>
120
120
 
121
121
  - Ensure your bundle and yarn installs of dependencies are up to date.
122
122
 
@@ -1,9 +1,3 @@
1
- # To ensure that Rails uses static assets rather than the webpack-dev-server
2
- # you may set ENV value WEBPACKER_DEV_SERVER=FALSE or delete or comment out the dev_server section
3
- # of config/webpacker.yml
4
- # For example:
5
- # web: WEBPACKER_DEV_SERVER=FALSE rails s -p 3000
6
-
7
1
  web: rails s -p 3000
8
2
 
9
3
  # Next line runs a watch process with webpack
@@ -3,10 +3,7 @@
3
3
  <head>
4
4
  <title>ReactOnRailsWithWebpacker</title>
5
5
  <%%= csrf_meta_tags %>
6
-
7
- <%%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
8
- <%%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
9
- <%%= javascript_pack_tag 'webpack-bundle' %>
6
+ <%%= javascript_pack_tag 'hello-world-bundle' %>
10
7
  </head>
11
8
 
12
9
  <body>
@@ -16,7 +16,7 @@ const config = {
16
16
  context: resolve(__dirname),
17
17
 
18
18
  entry: {
19
- 'webpack-bundle': [
19
+ 'hello-world-bundle': [
20
20
  'es5-shim/es5-shim',
21
21
  'es5-shim/es5-sham',
22
22
  'babel-polyfill',
@@ -7,13 +7,13 @@ ReactOnRails.configure do |config|
7
7
  config.generated_assets_dir = File.join(%w[public webpack], Rails.env)
8
8
 
9
9
  # Define the files we need to check for webpack compilation when running tests.
10
- config.webpack_generated_files = %w( webpack-bundle.js )
10
+ config.webpack_generated_files = %w( hello-world-bundle.js )
11
11
 
12
12
  # This is the file used for server rendering of React when using `(prerender: true)`
13
13
  # If you are never using server rendering, you may set this to "".
14
14
  # If you are using the same file for client and server rendering, having this set probably does
15
15
  # not affect performance.
16
- config.server_bundle_js_file = "webpack-bundle.js"
16
+ config.server_bundle_js_file = "hello-world-bundle.js"
17
17
 
18
18
  # If you are using the ReactOnRails::TestHelper.configure_rspec_to_compile_assets(config)
19
19
  # with rspec then this controls what yarn command is run
@@ -2,6 +2,7 @@
2
2
  default: &default
3
3
  # Critical to set compile as false for React on Rails projects
4
4
  compile: false
5
+ custom_compile: true
5
6
 
6
7
  development:
7
8
  <<: *default
@@ -21,5 +22,5 @@ test:
21
22
 
22
23
  production:
23
24
  <<: *default
24
- # generated files for tests, in /public/webpack/production
25
+ # generated files for production, in /public/webpack/production
25
26
  public_output_path: webpack/production
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "start": "node ./server.js -s webpack-bundle.js"
6
+ "start": "node ./server.js -s hello-world-bundle.js"
7
7
  },
8
8
  "dependencies": {
9
9
  }
@@ -59,7 +59,7 @@ module ReactOnRails
59
59
  def self.ensure_webpack_generated_files_exists
60
60
  return unless @configuration.webpack_generated_files.empty?
61
61
 
62
- files = ["webpack-bundle.js"]
62
+ files = ["hello-world-bundle.js"]
63
63
  if @configuration.server_bundle_js_file.present?
64
64
  files << @configuration.server_bundle_js_file
65
65
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReactOnRails
4
- VERSION = "9.0.0.beta.8"
4
+ VERSION = "9.0.0.beta.9"
5
5
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-on-rails",
3
- "version": "9.0.0-beta.8",
3
+ "version": "9.0.0-beta.9",
4
4
  "description": "react-on-rails JavaScript for react_on_rails Ruby gem",
5
5
  "main": "node_package/lib/ReactOnRails.js",
6
6
  "directories": {
@@ -56,7 +56,7 @@ module ReactOnRails
56
56
 
57
57
  def webpack_bundles
58
58
  bundles = []
59
- bundles << File.join(webpack_bundles_dir, "webpack-bundle.js")
59
+ bundles << File.join(webpack_bundles_dir, "hello-world-bundle.js")
60
60
  end
61
61
 
62
62
  def gemfile
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.beta.8
4
+ version: 9.0.0.beta.9
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-08-14 00:00:00.000000000 Z
11
+ date: 2017-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow