11name := " jquery-demo"
22
33inThisBuild(Seq (
4- version := " 3.0.1 " ,
4+ version := " 3.0.2 " ,
55 organization := " io.udash" ,
66))
77
88val commonSettings = Seq (
99 scalaVersion := " 2.12.10" ,
10- crossScalaVersions := Seq (" 2.12.10" ), // todo 2.13
10+ crossScalaVersions := Seq (" 2.12.10" ), // todo 2.13 & SJS 1.0 with Udash 0.9
1111 scalacOptions ++= Seq (
1212 " -feature" ,
1313 " -deprecation" ,
@@ -33,46 +33,10 @@ val root = project.in(file("."))
3333 .enablePlugins(ScalaJSPlugin )
3434 .settings(commonSettings)
3535
36- val `jquery-global-demo` = project.in(file(" global-demo" ))
37- .enablePlugins(ScalaJSPlugin )
38- .settings(
39- commonSettings,
40-
41- jsDependencies ++= Dependencies .jsDeps.value,
42-
43- sourceDirsSettings(_.getParentFile),
44-
45- /* move these files out of target/. */
46- Compile / fullOptJS / crossTarget := generatedGlobalDir,
47- Compile / fastOptJS / crossTarget := generatedGlobalDir,
48- Compile / packageJSDependencies / crossTarget := generatedGlobalDir,
49- Compile / packageMinifiedJSDependencies / crossTarget := generatedGlobalDir,
50-
51- Compile / fastOptJS := (Compile / fastOptJS).dependsOn(copyAssets).value,
52- Compile / fullOptJS := (Compile / fullOptJS).dependsOn(copyAssets).value,
53-
54- scalaJSUseMainModuleInitializer := true ,
55-
56- copyAssets := {
57- IO .copyFile(
58- sourceDirectory.value / " main/assets/index.html" ,
59- generatedGlobalDir / " index.html"
60- )
61- },
62-
63- Compile / fastOptJS / artifactPath :=
64- (Compile / fastOptJS / crossTarget).value / " scripts" / " frontend-impl.js" ,
65- Compile / fullOptJS / artifactPath :=
66- (Compile / fullOptJS / crossTarget).value / " scripts" / " frontend-impl.js" ,
67- Compile / packageJSDependencies / artifactPath :=
68- (Compile / packageJSDependencies / crossTarget).value / " scripts" / " frontend-deps.js" ,
69- Compile / packageMinifiedJSDependencies / artifactPath :=
70- (Compile / packageMinifiedJSDependencies / crossTarget).value / " scripts" / " frontend-deps.js"
71- )
72-
7336val generatedBundlerDir = file(" generated/bundler" )
7437val compileStatics = taskKey[Unit ](" Compiles all static files." )
75- val `jquery-bundler-demo` = project.in(file(" bundler-demo" ))
38+
39+ val example = project.in(file(" ." ))
7640 .enablePlugins(ScalaJSBundlerPlugin )
7741 .settings(
7842 commonSettings,
0 commit comments