-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.sbt
41 lines (38 loc) · 1.42 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
lazy val root = project
.in(file("."))
.enablePlugins(MdocPlugin)
.settings(
mdocIn := sourceDirectory.value / "pages",
mdocOut := target.value / "pages",
scalaVersion := "2.13.3",
version := "3.0.0",
libraryDependencies ++= Seq(
"com.typesafe.slick" %% "slick" % "3.3.3",
"com.typesafe.slick" %% "slick-hikaricp" % "3.3.3",
"com.h2database" % "h2" % "1.4.200",
"ch.qos.logback" % "logback-classic" % "1.2.3",
"joda-time" % "joda-time" % "2.10.5",
"org.joda" % "joda-convert" % "2.2.1"
),
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "utf-8",
"-feature",
"-language:existentials",
"-language:experimental.macros",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xcheckinit",
"-Xfatal-warnings",
)
)
lazy val pdf = taskKey[Unit]("Builds the PDF version of the book")
lazy val pdfPreview = taskKey[Unit]("Builds the PDF preview of the book")
lazy val html = taskKey[Unit]("Build the HTML version of the book")
lazy val epub = taskKey[Unit]("Build the ePub version of the book")
import sys.process._
pdf := { mdoc.toTask("").value ; "grunt pdf" ! }
pdfPreview := { mdoc.toTask("").value ; "grunt pandoc:pdf:preview" ! }
html := { mdoc.toTask("").value ; "grunt html" ! }
epub := { mdoc.toTask("").value ; "grunt epub" ! }