11name := " jquery-demo"
22
33inThisBuild(Seq (
4- version := " 3.0.2 " ,
4+ version := " 3.0.0-SNAPSHOT " ,
55 organization := " io.udash" ,
66))
77
88val 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 " ),
1111 scalacOptions ++= Seq (
1212 " -feature" ,
1313 " -deprecation" ,
@@ -34,17 +34,17 @@ val copyAssets = taskKey[Unit]("Copies all assets to the target directory.")
3434lazy val root = project.in(file(" ." ))
3535 .enablePlugins(ScalaJSPlugin )
3636 .settings(commonSettings)
37+ .aggregate(`jquery-bundler-demo`, `jquery-global-demo`)
3738
3839lazy val `jquery-global-demo` = project.in(file(" global-demo" ))
39- .enablePlugins(ScalaJSPlugin )
40+ .enablePlugins(ScalaJSPlugin , JSDependenciesPlugin )
4041 .settings(
4142 commonSettings,
4243
43- jsDependencies ++= Dependencies .jsDeps.value,
44-
4544 sourceDirsSettings(_.getParentFile),
4645
47- /* move these files out of target/. */
46+ cleanFiles += generatedGlobalDir,
47+
4848 Compile / fullOptJS / crossTarget := generatedGlobalDir,
4949 Compile / fastOptJS / crossTarget := generatedGlobalDir,
5050 Compile / packageJSDependencies / crossTarget := generatedGlobalDir,
@@ -91,6 +91,8 @@ lazy val `jquery-bundler-demo` = project.in(file("bundler-demo"))
9191 )
9292 },
9393
94+ cleanFiles += generatedBundlerDir,
95+
9496 compileStatics := {
9597 val sjsFileName = (Compile / fastOptJS).value.data.name.stripSuffix(" .js" )
9698 IO .copyFile(
0 commit comments