Code Monkey home page Code Monkey logo

Comments (9)

justin808 avatar justin808 commented on May 18, 2024

The gemspec includes:

  s.add_dependency "execjs", "~> 2.5"

So the gem depends on execjs, not therubyracer.

So yes, it's really not good to put in the gemfile.

We should add it as commented out and mention that you should set this if you plan to do server rendering.

Good catch.

We should have a file in the /docs directory on server rendering topics, BTW.

from react_on_rails.

justin808 avatar justin808 commented on May 18, 2024

@robwise Can we close this issue? I see this as a doc only issue.

from react_on_rails.

robwise avatar robwise commented on May 18, 2024

@justin808 It's up to you, I think I created this one a while back at your request. Right now the docs still say to manually include the therubyracer gem along with the react_on_rails gem in the Gemfile, and I'm still have the generator results script do that as well. If we want to remove that step, we should probably do some thorough testing and try to understand why it was put there in the first place.

from react_on_rails.

justin808 avatar justin808 commented on May 18, 2024

I'd say check react-rails.

We have a peer dependency of execjs already in the gem.

I'm almost 100% sure that we should not be putting in the therubyracer for non pre-render generators (and doc'd as such).

from react_on_rails.

robwise avatar robwise commented on May 18, 2024

@justin808 roger that, I will look into it and take it out if possible

from react_on_rails.

robwise avatar robwise commented on May 18, 2024

@justin808 while we're talking gem dependencies, we really should have foreman in there instead of just assuming people are going to have it.

from react_on_rails.

justin808 avatar justin808 commented on May 18, 2024

Probably. Maybe a non-production dependency. There's differing thoughts on including foreman in the gemfile.

from react_on_rails.

justin808 avatar justin808 commented on May 18, 2024

@robwise can we close this one?

from react_on_rails.

robwise avatar robwise commented on May 18, 2024

Yes, fixed in c21012a from PR #108

from react_on_rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.