-
Notifications
You must be signed in to change notification settings - Fork 380
Bump react_on_rails gem version to 1.0.3 #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a88cd1c
Bump react_on_rails gem version to 1.0.3
dylangrafmyre 8426335
Ignore generated js bundles
alex35mil 7322288
Fix server-side rendering with react_on_rails gem
alex35mil 5ef8e71
Update .travis.yml for webpack.server.config.js
dylangrafmyre 9f2142e
Update .travis.yml
dylangrafmyre 02abc29
Edit .travis.yml to fix build error
dylangrafmyre 6215a64
Update assets.rake and assets.rb for server-bundle.js
dylangrafmyre 63cf052
Added ability to set the JS driver for capybara
justin808 b9285cf
Change to Capybara webdriver selenium
dylangrafmyre d24b008
Address js linting issue
dylangrafmyre 2b9bdfb
Update .travis.yml for selenium_firefox webdriver
dylangrafmyre fcde7d8
Move ENV variable inline for .travis.yml
dylangrafmyre 527bc44
Adjust .travis.yml for running xvfb before_script
dylangrafmyre b042a35
Add addtional before_script xvfb config for .travis.yml
dylangrafmyre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
Procfile.dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| web: rails s -p 4000 | ||
| client: sh -c 'cd client && $(npm bin)/webpack -w --config webpack.rails.config.js' | ||
| server: sh -c 'cd client && $(npm bin)/webpack -w --config webpack.server.config.js' | ||
| hot: sh -c 'cd client && node server.js' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
client/assets/javascripts/ServerApp.jsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import React from 'react'; | ||
| import { Provider } from 'react-redux'; | ||
|
|
||
| import CommentScreen from './components/CommentScreen'; | ||
| import CommentStore from './stores/CommentStore'; | ||
|
|
||
| const App = () => { | ||
| const reactComponent = ( | ||
| <Provider store={CommentStore}> | ||
| {() => <CommentScreen />} | ||
| </Provider> | ||
| ); | ||
| return reactComponent; | ||
| }; | ||
|
|
||
| // Export is needed for the hot reload server | ||
| export default App; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
client/assets/javascripts/clientGlobals.jsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| import App from './ClientApp'; | ||
|
|
||
| window.App = App; |
7 changes: 7 additions & 0 deletions
client/assets/javascripts/serverGlobals.jsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| // Example of React + Redux | ||
| // Shows the mapping from the exported object to the name used by the server rendering. | ||
| import App from './ServerApp'; | ||
|
|
||
| // We can use the node global object for exposing. | ||
| // NodeJs: https://nodejs.org/api/globals.html#globals_global | ||
| global.App = App; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.