forked from scalawithcats/scala-with-cats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
43 lines (33 loc) · 1.41 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
name in ThisBuild := "scala-with-cats"
organization in ThisBuild := "io.underscore"
version in ThisBuild := "0.0.1"
scalaOrganization in ThisBuild := "org.typelevel"
scalaVersion in ThisBuild := "2.12.1"
logLevel in Global := Level.Warn
tutSettings
tutSourceDirectory := sourceDirectory.value / "pages"
tutTargetDirectory := target.value / "pages"
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-unchecked",
"-feature",
"-Xlint",
"-Xfatal-warnings",
"-Ywarn-dead-code",
"-Ypartial-unification",
"-Ydelambdafy:inline" // workaround for future deadlock on the 2.12.1 REPL
)
// resolvers ++= Seq(Resolver.sonatypeRepo("snapshots"))
libraryDependencies ++= Seq("org.typelevel" %% "cats-core" % "1.0.0-RC1")
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.3")
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 json = taskKey[Unit]("Build the Pandoc JSON AST 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" ! }
json := { tutQuick.value ; "grunt json" ! }
all := { pdf.value ; html.value ; epub.value ; json.value }