-
Notifications
You must be signed in to change notification settings - Fork 383
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
WIP Update to React On Rails v6 #287
Conversation
5aa6dfb
to
c016363
Compare
680b9a0
to
245d46b
Compare
@@ -1,30 +0,0 @@ | |||
# lib/tasks/assets.rake |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UPGRADE NOTE: Note, we removed this WHOLE file!
245d46b
to
ccdeaea
Compare
@@ -33,6 +33,8 @@ | |||
"build:dev:client": "webpack -w --config webpack.client.rails.build.config.js", | |||
"build:dev:server": "webpack -w --config webpack.server.rails.build.config.js", | |||
"build:server": "webpack --config webpack.server.rails.build.config.js", | |||
"build:test": "npm run build:client && npm run build:server", | |||
"build:production": "npm run build:production:client && npm run build:production:server", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UPGRADE NOTE: Be sure to create 2 npm tasks like this. The first one, build:test
is for building the assets for running tests. The second one build:production
if for building assets before the precompile step. This MUST correspond to your config/initializers/react_on_rails.rb
.
041bbee
to
f4935d1
Compare
f4935d1
to
a6bc75c
Compare
* update travis to ruby 2.3.1
a6bc75c
to
26bae33
Compare
"version": "3.0.4", | ||
"from": "acorn@>=3.0.4 <4.0.0", | ||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-3.0.4.tgz" | ||
"version": "3.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UPGRADE NOTE: Do not worry about the diffs in this file. You will update this when you run npm i
and maybe npm shrinkwrap
. You will probably rm -rf node_modules
. All those commands are to be run from the /client
dir.
This PR is an example of updating from 5.2 to 6.0 of React on Rails.
This change is