react_on_rails 2.0.0.rc.4 → 2.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/README.md +13 -7
- data/docs/releasing.md +1 -1
- data/lib/react_on_rails/version.rb +1 -1
- data/package.json +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ca2aa69174be7281a0e4319360d0b9fd21be4b9
|
|
4
|
+
data.tar.gz: 306c30df0533dfbd7a21611cfbc8852293dea608
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9fc4440ecf50374bef3c2ba918a7beb14671b6d20ac7e04e0915425342fada7b2f1acc046af3129f10bc96f7f6ebe2310c79cab2154ec987dbc91c4f9993de2e
|
|
7
|
+
data.tar.gz: bea573253e5da260b3ee01a99eae1286e56d8f99c78e9b4ca2a5eca2d8aaf114ec5d70a85e1c6e883e9abeba4666c483932bae439365241cbd6499437c28091c
|
data/README.md
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
[](https://travis-ci.org/shakacode/react_on_rails) [](https://coveralls.io/github/shakacode/react_on_rails?branch=master) [](https://gemnasium.com/shakacode/react_on_rails) [](https://badge.fury.io/rb/react_on_rails)
|
|
1
|
+
[](https://travis-ci.org/shakacode/react_on_rails) [](https://coveralls.io/github/shakacode/react_on_rails?branch=master) [](https://gemnasium.com/shakacode/react_on_rails) [](https://badge.fury.io/rb/react_on_rails) [](https://badge.fury.io/js/react-on-rails)
|
|
2
2
|
|
|
3
3
|
# NEWS
|
|
4
|
-
2.0 is about to ship! Please grab the latest and let us know if you see any issues!
|
|
5
4
|
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Branch: https://github.com/shakacode/react_on_rails/tree/npm-react-on-rails-js
|
|
9
|
-
* PR: https://github.com/shakacode/react_on_rails/pull/148
|
|
5
|
+
* 2.0 has shipped! Please grab the latest and let us know if you see any issues!
|
|
6
|
+
* It does not yet have *generator* support for CSS modules and hot reloading via the Rails server per shown in the [shakacode/react-webpack-rails-tutorial]. We're always looking for contributors! Thus, the setup for webpack, foreman, and sass will be somewhat different until we get the generators caught up.
|
|
10
7
|
|
|
11
8
|
# React on Rails
|
|
12
|
-
React on Rails integrates Facebook's [React](https://github.com/facebook/react) front-end framework with Rails.
|
|
9
|
+
React on Rails integrates Facebook's [React](https://github.com/facebook/react) front-end framework with Rails. React v0.14.x is supported, with server rendering. [Redux](https://github.com/rackt/redux) and [React-Router](https://github.com/rackt/react-redux) are supported as well. See the Rails on Maui [blog post](http://www.railsonmaui.com/blog/2014/10/03/integrating-webpack-and-the-es6-transpiler-into-an-existing-rails-project/) that started it all!
|
|
13
10
|
|
|
14
11
|
Be sure to see the [React Webpack Rails Tutorial Code](https://github.com/shakacode/react-webpack-rails-tutorial) along with the live example at [www.reactrails.com](http://www.reactrails.com).
|
|
15
12
|
|
|
@@ -143,6 +140,15 @@ We're definitely not doing that. With react_on_rails, webpack is mainly generati
|
|
|
143
140
|
|
|
144
141
|
5. Visit [localhost:3000/hello_world](http://localhost:3000/hello_world)
|
|
145
142
|
|
|
143
|
+
## NPM
|
|
144
|
+
All JavaScript in React On Rails is loaded from npm: [react-on-rails](https://www.npmjs.com/package/react-on-rails). To manually install this (you did not use the generator), assuming you have a standard configuration, run this command:
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
cd client && npm i --saveDev react-on-rails
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
That will install the latest version and update your package.json.
|
|
151
|
+
|
|
146
152
|
## How it Works
|
|
147
153
|
The generator installs your webpack files in the `client` folder. Foreman uses webpack to compile your code and output the bundled results to `app/assets/javascripts/generated`, which are then loaded by sprockets. These generated bundle files have been added to your `.gitignore` for your convenience.
|
|
148
154
|
|
data/docs/releasing.md
CHANGED
|
@@ -5,7 +5,7 @@ We're now releasing this as a combined ruby gem plus npm package. We will keep t
|
|
|
5
5
|
## Testing the Gem before Release from a Rails App
|
|
6
6
|
See [Contributing](../contributing.md)
|
|
7
7
|
|
|
8
|
-
##
|
|
8
|
+
## Releasing a new gem version
|
|
9
9
|
Install https://github.com/svenfuchs/gem-release
|
|
10
10
|
|
|
11
11
|
```bash
|
data/package.json
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: react_on_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.0
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Gordon
|
|
@@ -409,9 +409,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
409
409
|
version: '0'
|
|
410
410
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
411
411
|
requirements:
|
|
412
|
-
- - "
|
|
412
|
+
- - ">="
|
|
413
413
|
- !ruby/object:Gem::Version
|
|
414
|
-
version:
|
|
414
|
+
version: '0'
|
|
415
415
|
requirements: []
|
|
416
416
|
rubyforge_project:
|
|
417
417
|
rubygems_version: 2.5.1
|