forked from com-lihaoyi/scalatags
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
20 lines (19 loc) · 765 Bytes
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
lazy val readme = scalatex.ScalatexReadme(
projectId = "readme",
wd = file(""),
url = "https://github.com/lihaoyi/scalatags/tree/master",
source = "Readme",
autoResources = Seq("Autocomplete.png", "ErrorHighlighting.png", "InlineDocs.png", "example-opt.js")
).settings(
scalaVersion := "2.12.8",
(unmanagedSources in Compile) += baseDirectory.value/".."/"project"/"Constants.scala",
(resources in Compile) += (fullOptJS in (example, Compile)).value.data,
(resources in Compile) += (doc in (scalatagsJS, Compile)).value,
(run in Compile) := (run in Compile).dependsOn(Def.task{
sbt.IO.copyDirectory(
(doc in (scalatagsJS, Compile)).value,
(target in Compile).value/"scalatex"/"api",
overwrite = true
)
}).evaluated
)