react-on-rails
Advanced tools
Comparing version 9.0.0-beta.12 to 9.0.0-rc.0
@@ -21,3 +21,3 @@ # Change Log | ||
* config.npm_build_test_command ==> config.build_test_command | ||
* config.npm_build_production_command ==> config.build_production_command | ||
* config.build_production_command ==> config.build_production_command | ||
@@ -448,3 +448,3 @@ - Update the gemfile. Switch over to using the webpacker gem. | ||
- To configure the asset compliation you can either | ||
1. Specify a `config/react_on_rails` setting for `npm_build_production_command` to be nil to turn this feature off. | ||
1. Specify a `config/react_on_rails` setting for `build_production_command` to be nil to turn this feature off. | ||
2. Specify the script command you want to run to build your production assets, and remove your assets.rake file. | ||
@@ -460,3 +460,3 @@ | ||
# if you don't want react_on_rails building this file for you. | ||
config.npm_build_production_command = "npm run build:production" | ||
config.build_production_command = "npm run build:production" | ||
@@ -463,0 +463,0 @@ # If you are using the ReactOnRails::TestHelper.configure_rspec_to_compile_assets(config) |
{ | ||
"name": "react-on-rails", | ||
"version": "9.0.0-beta.12", | ||
"version": "9.0.0-rc.0", | ||
"description": "react-on-rails JavaScript for react_on_rails Ruby gem", | ||
@@ -90,5 +90,5 @@ "main": "node_package/lib/ReactOnRails.js", | ||
"dependencies": { | ||
"react-on-rails": "^9.0.0-beta.11", | ||
"react-on-rails": "^9.0.0-beta.12", | ||
"react-redux": "^5.0.6" | ||
} | ||
} |
@@ -7,2 +7,22 @@ [![Build Status](https://travis-ci.org/shakacode/react_on_rails.svg?branch=master)](https://travis-ci.org/shakacode/react_on_rails) [![Codeship Status for shakacode/react_on_rails](https://app.codeship.com/projects/cec6c040-971f-0134-488f-0a5146246bd8/status?branch=master)](https://app.codeship.com/projects/187011) [![Dependency Status](https://gemnasium.com/shakacode/react_on_rails.svg)](https://gemnasium.com/shakacode/react_on_rails) [![Gem Version](https://badge.fury.io/rb/react_on_rails.svg)](https://badge.fury.io/rb/react_on_rails) [![npm version](https://badge.fury.io/js/react-on-rails.svg)](https://badge.fury.io/js/react-on-rails) [![Code Climate](https://codeclimate.com/github/shakacode/react_on_rails/badges/gpa.svg)](https://codeclimate.com/github/shakacode/react_on_rails) [![Coverage Status](https://coveralls.io/repos/shakacode/react_on_rails/badge.svg?branch=master&service=github)](https://coveralls.io/github/shakacode/react_on_rails?branch=master) | ||
# React on Rails v9 beta 12 is based on Webpacker 3.0! | ||
* See the updated [Tutorial](https://github.com/shakacode/react_on_rails/blob/rails-webpacker/docs/tutorial.md). | ||
* I'm grateful for any [PR 908 reviews](https://github.com/shakacode/react_on_rails/pull/908). | ||
## Steps to a New App with rails/webpacker v3 plus React on Rails v9.beta: | ||
1. New Rails app: `rails new my-app --webpack=react`. `cd` into the directory. | ||
2. Add beta gem version: `gem 'react_on_rails', '~> 9.0.0.beta.12'` | ||
3. Run the generator: `rails generate react_on_rails:install` | ||
4. Start the app: `foreman start -f Procfile.dev` | ||
5. Visit http://localhost:3000/hello_world | ||
Turn on HMR (Hot reloading) | ||
1. Edit `config/webpacker.yml` and set `hmr: true` | ||
2. Start the app: `foreman start -f Procfile.dev-server` | ||
3. Visit http://localhost:3000/hello_world | ||
4. Edit `app/javascript/bundles/HelloWorld/components/HelloWorld.jsx`, hit save, and see the screen update. | ||
--------------- | ||
## Thank you from Justin Gordon and [ShakaCode](http://www.shakacode.com) | ||
@@ -581,3 +601,3 @@ | ||
* `config.symlink_non_digested_assets_regex`: Set to nil to turn off the setup of non-js assets. | ||
* `npm_build_production_command`: Set to nil to turn off the precompilation of the js assets. | ||
* `build_production_command`: Set to nil to turn off the precompilation of the js assets. | ||
* See the [Heroku Deployment](./docs/additional-reading/heroku-deployment.md) doc for specifics regarding Heroku. The information here should apply to other deployments. | ||
@@ -584,0 +604,0 @@ |
146683
741