react_on_rails 3.0.1 → 3.0.2
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 +6 -1
- data/README.md +5 -6
- data/lib/generators/react_on_rails/base_generator.rb +6 -0
- data/lib/generators/react_on_rails/react_with_redux_generator.rb +0 -11
- data/lib/react_on_rails/version.rb +1 -1
- data/package.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6da7d5c8a9a1645664f3c27bde9479a0959ed98
|
4
|
+
data.tar.gz: 40a0908a2a3eaef521de57be5cc161b971d101bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fadae2a9c789beb71a886d00febe744d4ced358b9224f5a3537ca71d51ea6c3db6aaa9802d547932374813b59949dd41aa757bfbafe9ae3cb2672474a3ea3ac4
|
7
|
+
data.tar.gz: 63b7ba24a96118e4121755fbb805eaf0af67daf3c6460c60cfae7ee4442da68019eb47343edcad384f112e1d6b7efb9fc8d34883989f70a5df9364b3670fba2d
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. Items under
|
|
4
4
|
Contributors: please follow the recommendations outlined at [keepachangelog.com](http://keepachangelog.com/). Please use the existing headings and styling as a guide, and add a link for the version diff at the bottom of the file. Also, please update the `Unreleased` link to compare to the latest release version.
|
5
5
|
## [Unreleased]
|
6
6
|
|
7
|
+
## [3.0.2] - 2016-02-15
|
8
|
+
##### Fixed
|
9
|
+
- Fixed missing information in the helpful message after running the base install generator regarding how to run the node server with hot reloading support.
|
10
|
+
|
7
11
|
## [3.0.1] - 2016-02-15
|
8
12
|
##### Fixed
|
9
13
|
- Fixed several jscs linter issues.
|
@@ -169,7 +173,8 @@ Best done with Object destructing:
|
|
169
173
|
|
170
174
|
##### Fixed
|
171
175
|
- Fix several generator related issues.
|
172
|
-
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/3.0.
|
176
|
+
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/3.0.2...master
|
177
|
+
[3.0.2]: https://github.com/shakacode/react_on_rails/compare/3.0.1...3.0.2
|
173
178
|
[3.0.1]: https://github.com/shakacode/react_on_rails/compare/3.0.0...3.0.1
|
174
179
|
[3.0.0]: https://github.com/shakacode/react_on_rails/compare/2.3.0...3.0.0
|
175
180
|
[2.3.0]: https://github.com/shakacode/react_on_rails/compare/2.2.0...2.3.0
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
2. Provides a convenient helper to ensure that JavaScript assets are compiled before running tests.
|
16
16
|
* React on Rails does not yet have *generator* support for building new apps that use CSS modules and hot reloading via the Rails server as is demonstrated in the [shakacode/react-webpack-rails-tutorial](https://github.com/shakacode/react-webpack-rails-tutorial/). *We do support this, but we don't generate the code.* If you did generate a fresh app from react_on_rails and want to move to CSS Modules, then see [PR 175: Babel 6 / CSS Modules / Rails hot reloading](https://github.com/shakacode/react-webpack-rails-tutorial/pull/175). Note, while there are probably fixes after this PR was accepted, this has the majority of the changes. See [the tutorial](https://github.com/shakacode/react-webpack-rails-tutorial/#news) for more information. Ping us if you want to help!
|
17
17
|
* [ShakaCode](http://www.shakacode.com) is doing Skype plus Slack/Github based coaching for "React on Rails". [Click here](http://www.shakacode.com/work/index.html) for more information.
|
18
|
-
* Be sure to read our new article [The React on Rails Doctrine](
|
18
|
+
* Be sure to read our new article [The React on Rails Doctrine](https://medium.com/@railsonmaui/the-react-on-rails-doctrine-3c59a778c724).
|
19
19
|
|
20
20
|
# React on Rails
|
21
21
|
|
@@ -25,7 +25,7 @@ React on Rails integrates Facebook's [React](https://github.com/facebook/react)
|
|
25
25
|
|
26
26
|
Be sure to see:
|
27
27
|
|
28
|
-
* [The React on Rails Doctrine](
|
28
|
+
* [The React on Rails Doctrine](https://medium.com/@railsonmaui/the-react-on-rails-doctrine-3c59a778c724)
|
29
29
|
* [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).
|
30
30
|
|
31
31
|
## Including your React Component in your Rails Views
|
@@ -423,7 +423,7 @@ Open your browser to [localhost:4000](http://localhost:4000). Whenever you make
|
|
423
423
|
Note that **React-related error messages are typically significantly more helpful when encountered in the dev server** than the Rails server as they do not include noise added by the React on Rails gem.
|
424
424
|
|
425
425
|
### Adding Additional Routes for the Dev Server
|
426
|
-
As you add more routes to your front-end application, you will need to make the corresponding API for the dev server in `client/server.js`. See our example `server.js` from our [tutorial](https://github.com/shakacode/react-webpack-rails-tutorial/blob/master/client
|
426
|
+
As you add more routes to your front-end application, you will need to make the corresponding API for the dev server in `client/server.js`. See our example `server.js` from our [tutorial](https://github.com/shakacode/react-webpack-rails-tutorial/blob/master/client%2Fserver-express.js).
|
427
427
|
|
428
428
|
## Migrate From react-rails
|
429
429
|
If you are using [react-rails](https://github.com/reactjs/react-rails) in your project, it is pretty simple to migrate to [react_on_rails](https://github.com/shakacode/react_on_rails).
|
@@ -443,9 +443,8 @@ If you are using [react-rails](https://github.com/reactjs/react-rails) in your p
|
|
443
443
|
Note: If you have components from react-rails you want to use, then you will need to port them into react_on_rails which uses webpack instead of the asset pipeline.
|
444
444
|
|
445
445
|
## Additional Reading
|
446
|
-
+ [The React on Rails Doctrine](
|
446
|
+
+ [The React on Rails Doctrine](https://medium.com/@railsonmaui/the-react-on-rails-doctrine-3c59a778c724)
|
447
447
|
+ [Babel](docs/additional_reading/babel.md)
|
448
|
-
+ [Generated Client Code](docs/additional_reading/generated_client_code.md)
|
449
448
|
+ [Heroku Deployment](docs/additional_reading/heroku_deployment.md)
|
450
449
|
+ [Manual Installation](docs/additional_reading/manual_installation.md)
|
451
450
|
+ [Node Dependencies and NPM](docs/additional_reading/node_dependencies_and_npm.md)
|
@@ -471,7 +470,7 @@ Note: If you have components from react-rails you want to use, then you will nee
|
|
471
470
|
```
|
472
471
|
|
473
472
|
## Contributing
|
474
|
-
Bug reports and pull requests are welcome. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to our version of the [Contributor Covenant
|
473
|
+
Bug reports and pull requests are welcome. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to our version of the [Contributor Covenant Code of Conduct](docs/code_of_conduct.md)).
|
475
474
|
|
476
475
|
See [Contributing](docs/contributing.md) to get started.
|
477
476
|
|
@@ -207,6 +207,12 @@ module ReactOnRails
|
|
207
207
|
npm run rails-server
|
208
208
|
|
209
209
|
- Visit http://localhost:3000/hello_world and see your React On Rails app running!
|
210
|
+
|
211
|
+
- Run the npm express-server command to load the node server with hot reloading support.
|
212
|
+
|
213
|
+
npm run express-server
|
214
|
+
|
215
|
+
- Visit http://localhost:4000 and see your React On Rails app running using the Webpack Dev server.
|
210
216
|
MSG
|
211
217
|
GeneratorMessages.add_info(message)
|
212
218
|
end
|
@@ -45,17 +45,6 @@ module ReactOnRails
|
|
45
45
|
location = "client/app/bundles/HelloWorld/startup"
|
46
46
|
template("redux/base/#{location}/HelloWorldAppClient.jsx.tt", "#{location}/#{filename}")
|
47
47
|
end
|
48
|
-
|
49
|
-
def print_helpful_message
|
50
|
-
message = <<-MSG
|
51
|
-
- Run the npm express-server command to load the node server with hot reloading support.
|
52
|
-
|
53
|
-
npm run express-server
|
54
|
-
|
55
|
-
- Visit http://localhost:4000 and see your React On Rails app running using the Webpack Dev server.
|
56
|
-
MSG
|
57
|
-
GeneratorMessages.add_info(message)
|
58
|
-
end
|
59
48
|
end
|
60
49
|
end
|
61
50
|
end
|
data/package.json
CHANGED