-
-
Notifications
You must be signed in to change notification settings - Fork 631
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
removed options from generator #364
Conversation
@justin808 When we finalize this, I'll rebase and it and merge them all into one commit. |
Looking good -- left you some comments. Reviewed 42 of 42 files at r1. CHANGELOG.md, line 9 [r1] (raw file): CHANGELOG.md, line 10 [r1] (raw file): provide some color to the read README.md, line 104 [r1] (raw file): README.md, line 407 [r1] (raw file): We can rebase your changes on top of the doc changes I'm doing. You'll need to manually merge in your README changes. lib/generators/react_on_rails/templates/base/base/package.json.tt, line 5 [r1] (raw file): lib/generators/react_on_rails/templates/base/base/client/package.json.tt, line 89 [r1] (raw file): https://github.com/gaearon/babel-plugin-react-transform lib/generators/react_on_rails/templates/base/base/client/package.json.tt, line 113 [r1] (raw file): lib/generators/react_on_rails/templates/base/base/lib/tasks/assets.rake.tt, line 1 [r1] (raw file): So we should have this example somewhere before we remove it. spec/dummy/Gemfile.lock, line 54 [r1] (raw file): spec/dummy/Gemfile.lock, line 260 [r1] (raw file): beta 4 is released spec/react_on_rails/support/.DS_Store, line 0 [r1] (raw file): Comments from Reviewable |
@justin808 anyway we can disable coveralls on this one since it will definitely reduce coverage from dropped options? Comments from Reviewable |
README.md, line 407 [r1] (raw file): Comments from Reviewable |
CHANGELOG.md, line 10 [r1] (raw file): Comments from Reviewable |
Review status: 36 of 42 files reviewed at latest revision, 11 unresolved discussions, some commit checks failed. CHANGELOG.md, line 10 [r1] (raw file): Comments from Reviewable |
Getting there. Don't worry about coveralls. Let's make sure the assets.rake file is created by the base installer (not heroku specific), and let's make sure the tests are not removed for this file. Reviewed 7 of 7 files at r2. docs/additional-reading/heroku-deployment.md, line 68 [r2] (raw file): docs/additional-reading/heroku-deployment.md, line 70 [r2] (raw file): spec/react_on_rails/support/.DS_Store, line [r1] (raw file): Comments from Reviewable |
CHANGELOG.md, line 10 [r1] (raw file): Comments from Reviewable |
spec/react_on_rails/support/.DS_Store, line [r1] (raw file): Comments from Reviewable |
My thoughts are that this is a positive step - I think it simplifies the gem and separates concerns of what is gem and what can be done with the gem. I'm happy to help with the documentation around how one might go about adding these things to their project:
The suspect that the ones in bold will be the most popular / frequently asked. It might even be worth writing some documents on how to use other CSS frameworks in a general sense. Popular ones like PureCSS or MaterializeCSS come to mind. Happy to help in any way I can. |
@jbhatab couple small comments. Get CI to pass and I'll merge this. I also saw you put back in asset.rake, but I couldn't find the test which ensures this file is created. Reviewed 3 of 3 files at r3. docs/additional-reading/heroku-deployment.md, line 68 [r3] (raw file):
lib/generators/react_on_rails/base_generator.rb, line 127 [r3] (raw file): lib/generators/react_on_rails/templates/base/base/lib/tasks/assets.rake.tt, line 26 [r3] (raw file): Comments from Reviewable |
@justin808 It doesn't show up in the PR anymore because I just reverted it back. It's in there though. @patrickgordon I think the simplification of this will help a ton so that way other people can start contributing in a more modular fashion like that. @justin808 I'm thinking we may want to do some more edits on the core readme. Also some of the additional readings stuff may be broken due to the fact they imply you ran the generator. It may be best to just leave them there and mark them in an 'old generator' state while we fix everything up. What do you think? |
lib/generators/react_on_rails/base_generator.rb, line 127 [r3] (raw file): Comments from Reviewable |
f4e8480
to
f970a3e
Compare
One little comment -- rake is not a language. probably should be ruby. Reviewed 2 of 3 files at r4. docs/additional-reading/heroku-deployment.md, line 70 [r2] (raw file): Comments from Reviewable |
Reviewed 1 of 3 files at r4. Comments from Reviewable |
f970a3e
to
96ba73a
Compare
@@ -404,52 +389,6 @@ The best source of docs is the main [ReactOnRails.js](node_package/src/ReactOnRa | |||
setOptions(options) | |||
``` | |||
|
|||
## Hot Reloading View Helpers |
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.
@jbhatab this is not part of the generator change.
96ba73a
to
e5ed550
Compare
82ec032
to
a35a697
Compare
Reviewed 1 of 1 files at r5, 6 of 6 files at r6. Comments from Reviewable |
This PR built to remove a few options from the installer and the express server.
Code removed from installer
Heroku
Hot Module Reloader
Express Server
Bootstrap
Ruby and JS linting
If anyone's curious on my logic, I can explain why I removed each in more detail but overall I felt they were outside of the scope of the gem and created maintenance issues.
Documentation and example app
The documentation in the readme hasn't been updated to reflect and that will have to be a dialog on how we want to port that over. Most likely we just need to remove all the relevant documentation and create small 'how tos' for each of these topics, but we can just remove things for now and add the how tos later. In the same vein as this, I also think we need to decide how we are going to move forward with example applications. we have the spec/dummy app and the webpack tutorial. I think we should stick with a single place for these things so we can make maintenance more stable.
How the app is run in develop
I kept the Procfile to run the app and the npm run command in the root package json but I think we should remove both the root package json and the Procfile in favor of manually running both commands. People can setup their own dev enviroments. I think this is outside the scope of this PR though. The relevant messages that pop up when running the generator were changed to reflect this though.
This change is