-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
33 lines (22 loc) · 983 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
import net.litola.SassPlugin
name := "recon"
version := "1.0-SNAPSHOT"
libraryDependencies ++= Seq(
jdbc,
anorm,
cache
)
play.Project.playScalaSettings ++ SassPlugin.sassSettings ++ Seq(SassPlugin.sassOptions := Seq("--style", "compressed", "-E", "UTF-8"))
// don't run built-in javascript compiler
javascriptEntryPoints <<= baseDirectory(base =>
base / "app" / "assets" / "javascripts" / "main" ** "*.js"
)
// import sbt-js
seq(jsSettings: _*)
(includeFilter in (Compile, JsKeys.js)) := "main.jsm" || "lib.jsm"
(JsKeys.compilationLevel in (Compile, JsKeys.js)) := CompilationLevel.SIMPLE_OPTIMIZATIONS
// or WHITESPACE_ONLY or ADVANCED_OPTIMIZATIONS
(sourceDirectory in (Compile, JsKeys.js)) <<= (baseDirectory in Compile)(_ / "public" / "javascripts")
(resourceManaged in (Compile, JsKeys.js)) <<= (resourceManaged in Compile)(_ / "public" / "javascripts")
// hook everything up as a resource generator
(resourceGenerators in Compile) <+= (JsKeys.js in Compile)