-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
38 lines (32 loc) · 969 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 sbtcrossproject.{crossProject, CrossType}
organization := "org.indyscala.try.scalajs"
version := "0.1.0-SNAPSHOT"
scalaVersion := "2.12.4"
homepage := Some(url("https://github.com/indyscala/trying-scalajs"))
licenses := Seq(
"MIT" -> url("http://opensource.org/licenses/MIT")
)
val circeVersion = "0.9.0"
lazy val pwned =
crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Full)
.settings(
libraryDependencies ++= Seq(
"io.circe" %%% "circe-core" % circeVersion,
"io.circe" %%% "circe-generic" % circeVersion,
"io.circe" %%% "circe-parser" % circeVersion,
),
)
.jsSettings(
name := "pwned-app",
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "0.9.4",
"com.lihaoyi" %%% "scalatags" % "0.6.7",
),
)
.jvmSettings(
name := "pwned-server",
description := "Unimplemented"
)
val pwnedJS = pwned.js
val pwnedJVM = pwned.jvm