1+ import UdashBuild ._
2+ import Dependencies ._
3+
14name := " jquery-demo"
25
3- version in ThisBuild := " 1.0.1-SNAPSHOT "
4- scalaVersion in ThisBuild := " 2.11.8 "
6+ version in ThisBuild := " 1.1.0 "
7+ scalaVersion in ThisBuild := " 2.12.2 "
58organization in ThisBuild := " io.udash"
69crossPaths in ThisBuild := false
710scalacOptions in ThisBuild ++= Seq (
@@ -12,37 +15,34 @@ scalacOptions in ThisBuild ++= Seq(
1215 " -language:existentials" ,
1316 " -language:dynamics" ,
1417 " -Xfuture" ,
15- " -Xfatal-warnings" ,
16- " -Xlint:_,-missing-interpolator,-adapted-args"
18+ " -Xfatal-warnings"
1719)
1820
1921val generatedDir = file(" generated" )
2022val `jquery-demo` = project.in(file(" ." )).enablePlugins(ScalaJSPlugin )
2123 .settings(
2224 libraryDependencies ++= deps.value,
23- persistLauncher in Compile := true ,
2425
2526 /* move these files out of target/. */
2627 crossTarget in (Compile , fullOptJS) := generatedDir,
2728 crossTarget in (Compile , fastOptJS) := generatedDir,
2829 crossTarget in (Compile , packageJSDependencies) := generatedDir,
29- crossTarget in (Compile , packageScalaJSLauncher) := generatedDir,
3030 crossTarget in (Compile , packageMinifiedJSDependencies) := generatedDir,
3131
32- compile << = (compile in Compile ).dependsOn(compileStatics),
32+ compile : = (compile in Compile ).dependsOn(compileStatics).value ,
3333 compileStatics := {
3434 compileStaticsForRelease.value
3535 (crossTarget.value / StaticFilesDir ).*** .get
3636 },
3737
38+ scalaJSUseMainModuleInitializer := true ,
39+
3840 artifactPath in(Compile , fastOptJS) :=
3941 (crossTarget in(Compile , fastOptJS)).value / StaticFilesDir / WebContent / " scripts" / " frontend-impl-fast.js" ,
4042 artifactPath in(Compile , fullOptJS) :=
4143 (crossTarget in(Compile , fullOptJS)).value / StaticFilesDir / WebContent / " scripts" / " frontend-impl.js" ,
4244 artifactPath in(Compile , packageJSDependencies) :=
4345 (crossTarget in(Compile , packageJSDependencies)).value / StaticFilesDir / WebContent / " scripts" / " frontend-deps-fast.js" ,
4446 artifactPath in(Compile , packageMinifiedJSDependencies) :=
45- (crossTarget in(Compile , packageMinifiedJSDependencies)).value / StaticFilesDir / WebContent / " scripts" / " frontend-deps.js" ,
46- artifactPath in(Compile , packageScalaJSLauncher) :=
47- (crossTarget in(Compile , packageScalaJSLauncher)).value / StaticFilesDir / WebContent / " scripts" / " frontend-init.js"
47+ (crossTarget in(Compile , packageMinifiedJSDependencies)).value / StaticFilesDir / WebContent / " scripts" / " frontend-deps.js"
4848 )
0 commit comments