Giter VIP home page Giter VIP logo

Comments (8)

seth2810 avatar seth2810 commented on June 28, 2024

+1

from sbt-web.

ollyw avatar ollyw commented on June 28, 2024

+1

from sbt-web.

hatashiro avatar hatashiro commented on June 28, 2024

+1

from sbt-web.

huntc avatar huntc commented on June 28, 2024

Ok, I get the idea. :-) Please no more +1 comments as they pollute the issue.

Of course, community contributions are also most welcome. :-) If anyone would like to talk about this design of this that I have in mind then please ping me.

from sbt-web.

rmmeans avatar rmmeans commented on June 28, 2024

I don't want to further pollute this topic, but I'm very curious in this integration. We broke away from the standard play framework build route a long time ago. Our configuration looks a little more like this now:
my-play-app
-client-app (sub-folder for our custom front-end SPA and all of the assets)
-public (nothing in it by default)
-.... (all the other play project root level folders)

During our Jenkins build processes, the first step runs npm install inside of the client-app folder, then runs the grunt task to build & unit-test our front-end SPA. The output of the grunt job saves the built files out to the public folder, then sbt runs the compile & build on the next build step so that the play app has the statically built assets.

Long-term, I would be interested in seeing if sbt-web matures to a point where these steps could essentially be executed by SBT itself so I don't have to break apart the build process for npm and grunt from the build steps to run the app itself. I could probably do this myself with my own sbt task using a Process, but a higher level grunt integration would be more awesome.

Thanks for the good work!

from sbt-web.

matiwinnetou avatar matiwinnetou commented on June 28, 2024

Isn't that those technologies are mutually exclusive, if there is grunt + plugins sbt-web + plugins makes no sense? I am not suprised Christopher may be a bit reluctant to work on that.

For big companies quite often there is separation of front-end and backend devs and at the moment teaching them scala or sbt-web is out of most people scopes. Grunt being js based with many plugins in ecosystem is leading the way, to me that does not mean sbt-web makes no sense but rather than one needs to be patient and hope community in large numbers of folks picks that up.

from sbt-web.

huntc avatar huntc commented on June 28, 2024

During our Jenkins build processes, the first step runs npm install inside of the client-app folder, then runs the grunt task to build & unit-test our front-end SPA. The output of the grunt job saves the built files out to the public folder, then sbt runs the compile & build on the next build step so that the play app has the statically built assets.

We already have support for npm so by just having a package.json at the root of your sbt project is sufficient i.e. it will update the dependencies automatically.

Long-term, I would be interested in seeing if sbt-web matures to a point where these steps could essentially be executed by SBT itself so I don't have to break apart the build process for npm and grunt from the build steps to run the app itself. I could probably do this myself with my own sbt task using a Process, but a higher level grunt integration would be more awesome.

What are your requirements in terms of plugins i.e. what do you need?

Isn't that those technologies are mutually exclusive, if there is grunt + plugins sbt-web + plugins makes no sense? I am not suprised Christopher may be a bit reluctant to work on that.

I'm not reluctant to work on this, it is just a question of priorities. There are not enough hours in the day of course. :-)

from sbt-web.

jroper avatar jroper commented on June 28, 2024

This isn't an sbt-web issue, if someone wants to provide an sbt-grunt that integrates with sbt-web then that's fine but sbt-web itself doesn't need to be modified for sbt-grunt.

If you're using Play Framework, then I would recommend not using sbt-web at all if you're using grunt, instead, just use grunt as shown here:

https://www.playframework.com/documentation/2.6.x/SBTCookbook

from sbt-web.

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.