Skip to content

Instantly share code, notes, and snippets.

@tzbob
Created September 9, 2016 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tzbob/9c2f4db82ab242d7a92dd3d611332e19 to your computer and use it in GitHub Desktop.
Save tzbob/9c2f4db82ab242d7a92dd3d611332e19 to your computer and use it in GitHub Desktop.
sbt-web-scalajs alternative structure
lazy val foo = crossProject
.in(file("."))
.settings(
organization := "foo",
name := "foo",
)
.jvmSettings(
...
)
.jsSettings(
...
)
lazy val fooJS = foo.js.enablePlugins(ScalaJSWeb)
lazy val fooJVM = foo.jvm
.settings(
scalaJSProjects := Seq(fooJS),
pipelineStages in Assets := Seq(scalaJSPipeline),
managedClasspath in Runtime += (packageBin in Assets).value
)
.enablePlugins(SbtWeb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment