Skip to content

Asset Tag Helpers API Change #203

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 3 commits into from
Jan 24, 2016
Merged

Conversation

robwise
Copy link
Contributor

@robwise robwise commented Jan 19, 2016

  • Change env_javascript_include_tag and env_stylesheet_link_tag API
  • rename application_prod -> application_static
  • rename application_dev to application_hot
  • pass REACT_ON_RAILS_ENV='HOT' environment variable in Procfile.dev

Review on Reviewable

@robwise robwise force-pushed the rob/env-tag-helper-api-changes branch from d59bfd2 to ba5539d Compare January 19, 2016 22:27
@@ -4,7 +4,7 @@

# Development rails requires both rails and rails-assets
# (and rails-server-assets if server rendering)
rails: rails s
rails: REACT_ON_RAILS_ENV='HOT' rails s
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no quotes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@justin808
Copy link
Member

We need updates to the Procfiles:

Procfile.dev --- everything
Procfile.hot -- hot assets rails server for dev mode
Procfile.rails -- static assets rails server for dev mode
Procfile.express
Procfile.spec -- only if not doing Procfile.rails -- builds the file for specs

@justin808
Copy link
Member

Then we want to put the helpers in react_on_rails.

… rename application_prod and dev to static and hot
@robwise robwise force-pushed the rob/env-tag-helper-api-changes branch from 0d024d3 to 13db9f4 Compare January 24, 2016 01:10
@robwise robwise force-pushed the rob/env-tag-helper-api-changes branch from 13db9f4 to 363f6d8 Compare January 24, 2016 01:15
@robwise
Copy link
Contributor Author

robwise commented Jan 24, 2016

@justin808 I still need to add the colored warning message thing we discussed, then will be ready for merge.

@robwise
Copy link
Contributor Author

robwise commented Jan 24, 2016

@justin808 ready for review/merge

@justin808
Copy link
Member

Ready? :lgtm_strong:


Reviewed 16 of 19 files at r1, 4 of 5 files at r2, 1 of 1 files at r3.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


spec/support/ensure_assets_compiled.rb, line 8 [r3] (raw file):
@robwise when we move to this the generators, naturally, we don't put in the server part. We can check the config file REactOnRails to see if there's a server file. If you set to blank, that means no server rendering.


Comments from the review on Reviewable.io

@justin808
Copy link
Member

Reviewed 16 of 19 files at r1, 4 of 5 files at r2, 1 of 1 files at r3.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from the review on Reviewable.io

robwise added a commit that referenced this pull request Jan 24, 2016
@robwise robwise merged commit f587990 into master Jan 24, 2016
@robwise robwise deleted the rob/env-tag-helper-api-changes branch January 24, 2016 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants