-
Notifications
You must be signed in to change notification settings - Fork 71
/
build.sbt
44 lines (35 loc) · 1.11 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
lazy val root = project.in(file("."))
.settings(tutSettings)
tutSourceDirectory := sourceDirectory.value / "pages"
tutTargetDirectory := target.value / "pages"
scalaOrganization in ThisBuild := "org.typelevel"
scalaVersion in ThisBuild := "2.12.1"
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-unchecked",
"-feature",
"-Xlint",
//"-Xfatal-warnings",
"-Ywarn-dead-code",
"-Yliteral-types"
)
resolvers ++= Seq(Resolver.sonatypeRepo("snapshots"))
libraryDependencies ++= Seq(
"com.chuusai" %% "shapeless" % "2.3.2",
"org.scalacheck" %% "scalacheck" % "1.13.5",
"org.typelevel" %% "cats" % "0.9.0"
)
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 := { tutQuick.value ; "grunt pdf".! }
html := { tutQuick.value ; "grunt html".! }
epub := { tutQuick.value ; "grunt epub".! }
all := {
tutQuick.value
"grunt pdf".!
"grunt html".!
"grunt epub".!
}