-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
78 lines (62 loc) · 2.45 KB
/
build.sbt
File metadata and controls
78 lines (62 loc) · 2.45 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import WebKeys._
name := """github-browser"""
organization in ThisBuild := "com.mkv"
version := "1.0.0-SNAPSHOT"
scalaVersion in ThisBuild := "2.11.7"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
// Dependencies
libraryDependencies ++= Seq(
cache,
ws,
// WebJars (i.e. client-side) dependencies
"org.webjars" % "requirejs" % "2.1.20",
"org.webjars" % "lodash" % "3.9.0",
"org.webjars" % "jquery" % "2.1.4",
"org.webjars" % "bootstrap" % "3.3.5" exclude("org.webjars", "jquery"),
"org.webjars" % "angularjs" % "1.4.4" exclude("org.webjars", "jquery"),
"org.webjars" % "font-awesome" % "4.4.0",
"org.webjars" % "angular-ui-bootstrap" % "0.13.3",
"org.webjars" % "chartjs" % "1.0.2"
)
// Scala Compiler Options
scalacOptions in ThisBuild ++= Seq(
"-target:jvm-1.8",
"-encoding", "UTF-8",
"-deprecation", // warning and location for usages of deprecated APIs
"-feature", // warning and location for usages of features that should be imported explicitly
"-unchecked", // additional warnings where generated code depends on assumptions
"-Xlint", // recommended additional warnings
"-Xcheckinit", // runtime error when a val is not initialized due to trait hierarchies (instead of NPE somewhere else)
"-Ywarn-adapted-args", // Warn if an argument list is modified to match the receiver
"-Ywarn-value-discard", // Warn when non-Unit expression results are unused
"-Ywarn-inaccessible",
"-Ywarn-dead-code"
)
routesGenerator := InjectedRoutesGenerator
//
// sbt-web configuration
// https://github.com/sbt/sbt-web
//
// Configure the steps of the asset pipeline (used in stage and dist tasks)
// rjs = RequireJS, uglifies, shrinks to one file, replaces WebJars with CDN
// digest = Adds hash to filename
pipelineStages := Seq(rjs, digest)
// RequireJS with sbt-rjs (https://github.com/sbt/sbt-rjs#sbt-rjs)
// ~~~
RjsKeys.paths += ("jsRoutes" -> ("/jsroutes" -> "empty:"))
//RjsKeys.mainModule := "main"
// Asset hashing with sbt-digest (https://github.com/sbt/sbt-digest)
// ~~~
// md5 | sha1
//DigestKeys.algorithms := "md5"
//includeFilter in digest := "..."
//excludeFilter in digest := "..."
// HTTP compression with sbt-gzip (https://github.com/sbt/sbt-gzip)
// ~~~
// includeFilter in GzipKeys.compress := "*.html" || "*.css" || "*.js"
// excludeFilter in GzipKeys.compress := "..."
// JavaScript linting with sbt-jshint (https://github.com/sbt/sbt-jshint)
// ~~~
// JshintKeys.config := ".jshintrc"
// All work and no play...
emojiLogs