1
1
name := " jquery-demo"
2
2
3
3
inThisBuild(Seq (
4
- version := " 3.0.2 " ,
4
+ version := " 3.0.0-SNAPSHOT " ,
5
5
organization := " io.udash" ,
6
6
))
7
7
8
8
val commonSettings = Seq (
9
- scalaVersion := " 2.12.10 " ,
10
- crossScalaVersions := Seq (" 2.12.10 " ), // todo 2.13 & SJS 1.0 with Udash 0.9
9
+ scalaVersion := " 2.12.11 " ,
10
+ crossScalaVersions := Seq (" 2.13.1 " ),
11
11
scalacOptions ++= Seq (
12
12
" -feature" ,
13
13
" -deprecation" ,
@@ -34,17 +34,17 @@ val copyAssets = taskKey[Unit]("Copies all assets to the target directory.")
34
34
lazy val root = project.in(file(" ." ))
35
35
.enablePlugins(ScalaJSPlugin )
36
36
.settings(commonSettings)
37
+ .aggregate(`jquery-bundler-demo`, `jquery-global-demo`)
37
38
38
39
lazy val `jquery-global-demo` = project.in(file(" global-demo" ))
39
- .enablePlugins(ScalaJSPlugin )
40
+ .enablePlugins(ScalaJSPlugin , JSDependenciesPlugin )
40
41
.settings(
41
42
commonSettings,
42
43
43
- jsDependencies ++= Dependencies .jsDeps.value,
44
-
45
44
sourceDirsSettings(_.getParentFile),
46
45
47
- /* move these files out of target/. */
46
+ cleanFiles += generatedGlobalDir,
47
+
48
48
Compile / fullOptJS / crossTarget := generatedGlobalDir,
49
49
Compile / fastOptJS / crossTarget := generatedGlobalDir,
50
50
Compile / packageJSDependencies / crossTarget := generatedGlobalDir,
@@ -91,6 +91,8 @@ lazy val `jquery-bundler-demo` = project.in(file("bundler-demo"))
91
91
)
92
92
},
93
93
94
+ cleanFiles += generatedBundlerDir,
95
+
94
96
compileStatics := {
95
97
val sjsFileName = (Compile / fastOptJS).value.data.name.stripSuffix(" .js" )
96
98
IO .copyFile(
0 commit comments