Coder Social home page Coder Social logo

Comments (10)

PromanSEW avatar PromanSEW commented on May 20, 2024 2

I am working on PR for this

from playframework.

mkurz avatar mkurz commented on May 20, 2024 2

@henricook

generateJsReverseRouter := false

in build.sbt (Fully qualified: play.sbt.routes.RoutesKeys.generateJsReverseRouter).

from playframework.

PromanSEW avatar PromanSEW commented on May 20, 2024 1

Hmm... I realized that RoutesKeys.generateReverseRouter := false in build.sbt is the one I am looking for.
It disables all reverse routes as I want, nice
So, issue can be closed because this option exists already

from playframework.

mkurz avatar mkurz commented on May 20, 2024 1

Yes it is no 100% what the original request was, but the problem was solved for Roman.
Anyway, we can re-open to have a separate config to disable javascript routes.

from playframework.

PromanSEW avatar PromanSEW commented on May 20, 2024

Why Java equivalent for ScalaJavascriptRouting is JavaJavascriptRouter?

from playframework.

ihostage avatar ihostage commented on May 20, 2024

I did not found in documentation how to turn off generation of JavaScript routers It would be nice to have that, for decreasing of unused generated code. Example: REST client (PlayService) without web interface, so JavaScript routers will never be used here.

Hi, Roman! 👋 You are right, it's not possible to turn off right now. But I caught the same thoughts about this opportunity while adding Gradle support and I agree it would be nice to have the related settings. 👍
Would you be keen to provide a pull request for that feature?

from playframework.

PromanSEW avatar PromanSEW commented on May 20, 2024

OK, I'll try if I have free time soon. If I'm right, here are key places for editing:

val generateReverseRouter = SettingKey[Boolean](

The main problem is how integrate new setting into this unfamiliar code for me...

from playframework.

mkurz avatar mkurz commented on May 20, 2024

Perfect!

from playframework.

ihostage avatar ihostage commented on May 20, 2024

So, issue can be closed because this option exists already

I'm not sure that generateReverseRouter settings and subject of this issue is equals 🤔
@mkurz Can you correct me or can I reopen this issue otherwise? 😄

from playframework.

henricook avatar henricook commented on May 20, 2024

@PromanSEW Would you mind telling me how to disable this in 3.0.2 please? It sounds like it might save some unused code generation in my purely Scala Play project? I didn't see a docs update, please forgive me if you've already documented this somewhere

from playframework.

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.