-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
38 lines (28 loc) · 964 Bytes
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import Dependencies._
import org.scalajs.core.tools.linker.backend.OutputMode
import org.scalajs.core.tools.linker.standard._
lazy val root = (project in file(".")).
settings(
inThisBuild(List(
organization := "com.example",
scalaVersion := "2.12.4",
version := "0.1.0-SNAPSHOT"
)),
name := "simple-scalajs-app",
libraryDependencies += scalaTest % Test
)
enablePlugins(ScalaJSPlugin)
scalaJSUseMainModuleInitializer := true
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "0.9.5"
val circeVersion = "0.9.3"
libraryDependencies ++= Seq(
"io.circe" %%% "circe-core",
"io.circe" %%% "circe-generic",
"io.circe" %%% "circe-parser"
).map(_ % circeVersion)
libraryDependencies ++= Seq(
"com.lihaoyi" %%% "scalatags" % "0.6.7"
)
scalaJSLinkerConfig ~= { _.withOutputMode(OutputMode.ECMAScript2015) }
mainClass in Compile := Some("example.Main")
scalacOptions += "-P:scalajs:sjsDefinedByDefault"