Skip to content

Instantly share code, notes, and snippets.

@coreyoconnor
Created July 17, 2019 20:17
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 coreyoconnor/5d409874455a79c7f74fc0f089e25f6d to your computer and use it in GitHub Desktop.
Save coreyoconnor/5d409874455a79c7f74fc0f089e25f6d to your computer and use it in GitHub Desktop.
lazy val client = crossProject(JSPlatform)
.withoutSuffixFor(JSPlatform)
.crossType(CrossType.Full)
.dependsOn(shared)
.enablePlugins(glngn.sbt.Client)
.settings(
name := "glngn-client",
commonSettings,
glngnSettings,
libraryDependencies += "org.scala-lang.modules" %%% "scala-xml" % "1.2.0",
libraryDependencies ++= webjars
)
.jsSettings(jsSettings)
.jsSettings(
Compile/mainClass := Some("glngn.client.Main"),
scalaJSLinkerConfig ~= { config =>
config
.withModuleKind(ModuleKind.ESModule)
.withESFeatures(_.withUseECMAScript2015(true))
},
coverageEnabled := false
)
.enablePlugins(SbtWeb, ScalaJSWeb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment