-
-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
combined webpack files into one webpack config. fixed corresponding t…
…ests and code. cleaned up some documentation.
- Loading branch information
Showing
37 changed files
with
207 additions
and
720 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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: 1 addition & 2 deletions
3
lib/generators/react_on_rails/templates/base/base/Procfile.dev.tt
This file contains 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,2 @@ | ||
web: rails s | ||
client: sh -c 'rm app/assets/webpack/* || true && cd client && npm run build:dev:client' | ||
<%- if options.server_rendering? %>server: sh -c 'cd client && npm run build:dev:server'<%- end %> | ||
client: sh -c 'rm app/assets/webpack/* || true && cd client && npm run build:dev' |
16 changes: 0 additions & 16 deletions
16
lib/generators/react_on_rails/templates/base/base/REACT_ON_RAILS.md
This file was deleted.
Oops, something went wrong.
7 changes: 3 additions & 4 deletions
7
lib/generators/react_on_rails/templates/base/base/app/views/hello_world/index.html.erb.tt
This file contains 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,4 +1,3 @@ | ||
<h1 class="alert alert-info this-works"><%= options.server_rendering? ? "Server Rendering" : "Client Rendering" %></h1> | ||
<%%= react_component("HelloWorldApp", | ||
props: @hello_world_props, | ||
prerender: <%= options.server_rendering? %>) %> | ||
<h1 class="alert alert-info this-works">Hello World</h1> | ||
<%%= react_component("HelloWorldApp", props: @hello_world_props) %> | ||
|
3 changes: 0 additions & 3 deletions
3
...ators/react_on_rails/templates/base/base/client/REACT_ON_RAILS_CLIENT_README.md
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.