-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
42 lines (29 loc) · 1.38 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
name := "FoBo-Less"
organization := "net.liftmodules"
version := "0.1-SNAPSHOT"
//scalaVersion := "2.9.1"
logLevel := Level.Info
//Level.Info.Debug
//#########################################################################
//#### THE LESS BUILD
//## The fobo less build currently only support less build of one bootstrap
//## version at a time. When done you also have to manually copy the build
//## css files to there corresponding src/main/resources/toserve directories
//## in FoBo.
//## If anyone knows how to automate this plz let me know and also how to
//## manage more than one less build at the time. The target dir has to be
//## the src dir as FoBo uses yui to add both min and uncompressed css
//## files to the build.
//#########################################################################
//tbVerPath := "2.0.4"
seq(lessSettings:_*)
(sourceDirectories in (Compile, LessKeys.less)) <<= (sourceDirectory in Compile) {
srcDir =>
Seq(
srcDir / "less" / "bootstrap" / "2.0.4" / "overrides",
srcDir / "less" / "bootstrap" / "2.0.4" / "origin"
)
}
(LessKeys.prettyPrint in (Compile, LessKeys.less)) := true
(includeFilter in (Compile, LessKeys.less)) := ("bootstrap.less" | "responsive.less": FileFilter)
(resourceManaged in (Compile, LessKeys.less)) <<= (crossTarget in Compile)(_ / "classes" / "toserve" / "fobo" / "bootstrap" / "2.0.4" / "css" )