-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.sbt
46 lines (36 loc) · 874 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
37
38
39
40
41
42
43
44
45
46
scalaVersion := "2.11.7"
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-unchecked",
"-feature",
"-language:implicitConversions",
"-language:postfixOps",
"-Ywarn-dead-code",
"-Xlint",
"-Xfatal-warnings"
)
lazy val root = project.in(file("."))
.settings(tutSettings)
tutSourceDirectory := sourceDirectory.value / "raw"
tutTargetDirectory := sourceDirectory.value / "pages"
lazy val pdf = taskKey[Unit]("Build the PDF version 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")
lazy val all = taskKey[Unit]("Build all versions of the book")
pdf := {
val a = tut.value
"grunt pdf" !
}
html := {
val a = tut.value
"grunt html" !
}
epub := {
val a = tut.value
"grunt epub" !
}
all := {
val a = tut.value
"grunt all" !
}