-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.sbt
96 lines (91 loc) · 2.76 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
inThisBuild(
List(
scalaVersion := "3.4.2",
evictionErrorLevel := Level.Warn,
publish / skip := true,
scalafmtSbt := true,
resolvers +=
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
organization := "ba.sake",
homepage := Some(url("https://github.com/sacode387/FlowRun")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
scmInfo := Some(
ScmInfo(
url("https://github.com/sacode387/FlowRun"),
"scm:git:[email protected]:sacode387/FlowRun.git"
)
),
developers := List(
Developer(
"sake92",
"Sakib Hadžiavdić",
url("https://sake.ba")
)
)
)
)
lazy val editor = (project in file("editor"))
.settings(
name := "flowrun-editor",
libraryDependencies ++= Seq(
"com.lihaoyi" %%% "scalatags" % "0.12.0",
"com.lihaoyi" %%% "utest" % "0.8.1" % Test,
"com.lihaoyi" %%% "pprint" % "0.8.1" % Test
),
scalacOptions ++= Seq(
"-Xmax-inlines",
"128",
"-Ysafe-init",
"-deprecation",
"-Yretain-trees"
),
// tests
testFrameworks += new TestFramework("utest.runner.Framework"),
Test / parallelExecution := false,
Test / jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv()
)
.dependsOn(interpreter.js)
.enablePlugins(ScalaJSPlugin)
lazy val interpreter = crossProject(JVMPlatform, JSPlatform)
.in(file("interpreter"))
.settings(
name := "flowrun-interpreter",
libraryDependencies ++= Seq(
"io.github.cquiroz" %%% "scala-java-time" % "2.5.0",
"com.outr" %%% "reactify" % "4.0.8",
"ba.sake" %%% "tupson" % "0.11.0",
"com.lihaoyi" %%% "utest" % "0.8.1" % Test,
"com.lihaoyi" %%% "pprint" % "0.8.1" % Test
),
scalacOptions ++= Seq(
"-Xmax-inlines",
"128",
"-Ysafe-init",
"-deprecation",
"-Yretain-trees"
),
// tests
testFrameworks += new TestFramework("utest.runner.Framework"),
Test / parallelExecution := false,
Test / jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv()
)
.jsSettings(
libraryDependencies += ("org.scala-js" %%% "scalajs-java-securerandom" % "1.0.0").cross(CrossVersion.for3Use2_13)
)
.jvmSettings(
libraryDependencies += "org.scala-js" %% "scalajs-stubs" % "1.1.0" % "provided",
publish / skip := false
)
lazy val demo = (project in file("demo"))
.settings(
scalaJSUseMainModuleInitializer := true,
(Compile / compile) := {
WebKeys.assets.value
(Compile / compile).value
},
Compile / fastLinkJS / scalaJSLinkerOutputDirectory :=
(Assets / WebKeys.public).value / "scripts"
)
.dependsOn(editor)
.enablePlugins(ScalaJSPlugin, SbtWeb)