Created
September 9, 2016 12:06
-
-
Save tzbob/9c2f4db82ab242d7a92dd3d611332e19 to your computer and use it in GitHub Desktop.
sbt-web-scalajs alternative structure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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