-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
54 lines (40 loc) · 1.32 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
44
45
46
47
48
49
50
51
52
53
54
enablePlugins(ScalaJSPlugin)
name := "sri-website"
scalaVersion := "2.12.4"
libraryDependencies ++= Seq(
"scalajs-react-interface" %%% "web-bundle" % "2017.12.0-SNAPSHOT"
)
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-feature",
"-language:postfixOps",
"-language:implicitConversions",
"-language:higherKinds",
"-language:existentials",
"-Xmacro-settings:classNameShrink=components"
)
scalaJSUseMainModuleInitializer := true
scalaJSUseMainModuleInitializer in Test := true
scalaJSLinkerConfig ~= (_.withModuleKind(ModuleKind.CommonJSModule))
resolvers += Resolver.bintrayRepo("scalajs-react-interface", "maven")
resolvers += Resolver.bintrayRepo("scalajs-css", "maven")
resolvers += Resolver.bintrayRepo("scalajs-jest", "maven")
/** Custom tasks to generate launcher file in CommonJSModule mode */
val SJS_OUTPUT_PATH = "static/scalajs-output.js"
artifactPath in Compile in fastOptJS :=
baseDirectory.value / SJS_OUTPUT_PATH
artifactPath in Compile in fullOptJS :=
baseDirectory.value / SJS_OUTPUT_PATH
val dev = Def.taskKey[Unit]("Generate web output file via fastOptJS")
val prod = Def.taskKey[Unit]("Generate web output file via fullOptJS")
//lazy val web = config("Web")
//
//dev in web := {
// (fastOptJS in Compile).value.data
//
//}
//
//prod in web := {
// (fullOptJS in Compile).value.data
//}