-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
42 lines (40 loc) · 1.68 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
import play.core.PlayVersion
lazy val lib = (project in file("."))
.settings(
name := "scala-nunjucks",
version := "0.1.0",
scalaVersion := "2.12.12",
scalacOptions += "-Ypartial-unification",
addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.11.0" cross CrossVersion.full),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full),
libraryDependencies ++= Seq(
"com.lihaoyi" %% "fastparse" % "2.1.2",
"org.typelevel" %% "cats-core" % "2.2.0",
"com.github.mpilquist" %% "simulacrum" % "0.19.0",
"org.scalactic" %% "scalactic" % "3.2.2",
"org.scalatest" %% "scalatest" % "3.2.0" % Test,
"org.webjars.npm" % "govuk-frontend" % "3.1.0" % Test
)
)
lazy val playTest = (project in file("play-test"))
.enablePlugins(PlayScala)
.dependsOn(lib)
.settings(
name := "play-test",
scalaVersion := "2.12.12",
libraryDependencies ++= Seq(
filters,
"com.typesafe.play" %% "play-guice" % PlayVersion.current,
"org.webjars.npm" % "govuk-frontend" % "3.1.0",
"org.scalactic" %% "scalactic" % "3.2.2",
"org.scalatest" %% "scalatest" % "3.1.1" % Test,
"org.scalatest" %% "scalatest" % "3.2.0" % "test",
"org.scalacheck" %% "scalacheck" % "1.14.3" % "test",
"org.pegdown" % "pegdown" % "1.6.0" % "test"
),
Concat.groups := Seq(
"javascripts/application.js" -> group(Seq("lib/govuk-frontend/govuk/all.js"))
),
uglifyCompressOptions := Seq("unused=false", "dead_code=false"),
pipelineStages in Assets := Seq(concat, uglify)
)