-
Notifications
You must be signed in to change notification settings - Fork 759
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
Only require rails as a development dependency #427
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
👍 |
Doesn't this have issues with sprockets not being available? |
I think our usage of sprockets can be avoided if you're not on rails. Most of it is through Here's the only place we access Sprockets by name: react-rails/lib/react/rails/engine.rb Lines 5 to 6 in c463b8e
But I guess if you're not using Rails, you don't ever run that initializer? |
any chance this will be merged? I have an app without active_record, arel, mailer, active_job also, is |
I would love to merge this PR, but I'm not quite clear how the Sprockets dependency should be handled:
I think a good way to answer this question is either:
As for coffee-script-source, perhaps we could remove it, initially it was added because of a coffee-script bug #168 |
I think, the only dependencies should be there are:
I don't think react-rails should support non-rails environments at all, but I am talking about pretty cut rails app. I will create a test app than. Thanks! |
@natemontgomery Thanks for your work on this! I pulled your commits into #558 along with another PR so that I could test the Sprockets dependency. |
Requiring Rails as a runtime dependency causes issues if application does not use ActiveRecord.