Scala.js without SBT

395 views
Skip to first unread message

Eric Hubbard

unread,
Jun 20, 2015, 9:32:31 PM6/20/15
to scal...@googlegroups.com
Been spending some time trying to setup a productive code/build cycle.  It seems like with Workbench -- and the cross project stuff -- I *should* be able to get everything going in a nice happy way.  However; my newness to Scala & SBT keep getting in the way.  

It would be nice if I could fall back to ant/intellij (very comfy for me)  to drive my builds and concentrate just on scala --  is there any documentation floating around on what the various class invocations and magic pixie dust that might be required to do so?  

Thanks..

Eric Hubbard

unread,
Jun 21, 2015, 1:30:02 AM6/21/15
to scal...@googlegroups.com
It looks like -- if I had the invocation info -- I could just define the scalajs files as a transplier within intellij -- much like coffeescript...  

Roman Janusz

unread,
Jun 21, 2015, 9:03:44 AM6/21/15
to scal...@googlegroups.com
Scala.js compiler is technically just a compiler plugin for regular scalac, so it shouldn't be a problem to set up IntelliJ for Scala.js with other build tools, but AFAIK, SBT contains some significant amounts of code that generates and optimizes final JS files (the compiler itself produces only intermediate .sjsir files), and these may be more problematic to port.

Mark Lister

unread,
Jun 21, 2015, 10:46:11 AM6/21/15
to scal...@googlegroups.com
You're unlikely to make your life any easier by ditching sbt. I suggest you copy your abt setup from one of the numerous projects on GitHub

Justin du coeur

unread,
Jun 21, 2015, 11:26:38 AM6/21/15
to scal...@googlegroups.com
On Sun, Jun 21, 2015 at 9:03 AM, Roman Janusz <romeqj...@gmail.com> wrote:
Scala.js compiler is technically just a compiler plugin for regular scalac, so it shouldn't be a problem to set up IntelliJ for Scala.js with other build tools, but AFAIK, SBT contains some significant amounts of code that generates and optimizes final JS files (the compiler itself produces only intermediate .sjsir files), and these may be more problematic to port.

Yeah, we've got all sorts of tooling infrastructure that's evolved over the past couple of years, nearly all of it written in sbt.  (Keep in mind, sbt isn't just tool, it's essentially a language itself.)  While I can understand the desire to avoid the sbt learning curve, trying to do without it seems like a way to make yourself miserable in the medium term -- it's likely to be very limiting...

Eric Hubbard

unread,
Jun 21, 2015, 12:14:12 PM6/21/15
to Roman Janusz, scal...@googlegroups.com
hmm... yeah I don't want to get into the business of re-inventing SBT inside of intellij & ant...   your response..(and others) have convinced me to bite the bullet.  I've tried a few of the examples over on github -- none of them worked "out of the box" for me..  not sure if it was user error or just version/workflow mismatches..   and slogging through all that.. seemed so .. extra...:(


--
You received this message because you are subscribed to a topic in the Google Groups "Scala.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scala-js/HDa32VxRwUg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scala-js+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-js/614e9d18-76b0-4d7e-9604-1d457fe5eb61%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Sébastien Doeraene

unread,
Jun 21, 2015, 4:53:49 PM6/21/15
to Eric Hubbard, scal...@googlegroups.com, Roman Janusz

Hi,

You can work with Scala.js without sbt using the standalone cli:
http://www.scala-js.org/downloads.html

You can find out how that works at https://github.com/scala-js/scala-js/blob/master/TESTING

Cheers,
Sébastien

--
You received this message because you are subscribed to the Google Groups "Scala.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-js+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-js/CABOXiu1B%2BS0MbsjL83f6S6%3D609v4oy9M365_1LXWKP9AJ834Hg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages