-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
36 lines (34 loc) · 1006 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
import sbt._
import Keys._
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8", // yes, this is 2 args
"-feature",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code", // N.B. doesn't work well with the ??? hole
"-Ywarn-infer-any",
"-Ywarn-numeric-widen",
"-Ywarn-unused",
"-Ywarn-unused-import",
"-Ywarn-value-discard",
"-Xfuture",
"-Ydelambdafy:method",
"-target:jvm-1.8"
)
lazy val sqlFormatter = Project("sql-formatter", file("."))
.settings(Seq(
organization := "mrdziuban",
name := "sql-formatter",
version := "1.0",
scalaVersion := "2.12.4",
scalaSource in Compile := baseDirectory.value / "scalajs" / "src",
scalaSource in Test := baseDirectory.value / "test" / "scalajs",
scalaJSUseMainModuleInitializer := true,
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "0.9.4",
"org.scalatest" %%% "scalatest" % "3.0.4" % "test"
)
)).enablePlugins(ScalaJSPlugin)