-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.sbt
47 lines (42 loc) · 1.44 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
import Wart._
enablePlugins(ScalaJSPlugin)
ThisBuild / scalaVersion := "2.13.16"
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / organization := "io.lptk"
ThisBuild / organizationName := "LPTK"
lazy val root = project.in(file("."))
.aggregate(simplesubJS, simplesubJVM)
.settings(
publish := {},
publishLocal := {}
)
lazy val simplesub = crossProject(JSPlatform, JVMPlatform).in(file("."))
.settings(
name := "simple-sub",
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-unchecked",
"-language:higherKinds",
"-Ywarn-value-discard",
),
wartremoverWarnings ++= Warts.allBut(
Recursion, Throw, Nothing, Return, While,
Var, MutableDataStructures, NonUnitStatements,
DefaultArguments, ImplicitParameter, StringPlusAny,
JavaSerializable, Serializable, Product, Any,
LeakingSealed,
Option2Iterable,
),
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % Test,
libraryDependencies += "com.lihaoyi" %%% "fastparse" % "3.1.1",
libraryDependencies += "com.lihaoyi" %%% "sourcecode" % "0.4.2",
)
.jsSettings(
scalaJSUseMainModuleInitializer := true,
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "2.8.0",
libraryDependencies += "be.doeraene" %%% "scalajs-jquery" % "1.0.0",
ThisBuild / evictionErrorLevel := Level.Info,
)
lazy val simplesubJVM = simplesub.jvm
lazy val simplesubJS = simplesub.js