@@ -3,6 +3,9 @@ name := "jquery-demo"
3
3
inThisBuild(Seq (
4
4
version := " 3.0.0" ,
5
5
organization := " io.udash" ,
6
+ ))
7
+
8
+ val commonSettings = Seq (
6
9
scalaVersion := " 2.12.7" ,
7
10
crossScalaVersions := Seq (" 2.11.12" , " 2.12.7" ),
8
11
scalacOptions ++= Seq (
@@ -25,13 +28,19 @@ inThisBuild(Seq(
25
28
" -Ycache-macro-class-loader:last-modified"
26
29
) else Seq .empty
27
30
},
28
- ))
31
+
32
+ libraryDependencies ++= Dependencies .deps.value
33
+ )
29
34
30
35
val generatedGlobalDir = file(" generated/global" )
31
36
val copyAssets = taskKey[Unit ](" Copies all assets to the target directory." )
37
+ val root = project.in(file(" ." )).enablePlugins(ScalaJSPlugin )
38
+ .settings(commonSettings)
39
+
32
40
val `jquery-global-demo` = project.in(file(" global-demo" )).enablePlugins(ScalaJSPlugin )
33
41
.settings(
34
- libraryDependencies ++= Dependencies .deps.value,
42
+ commonSettings,
43
+
35
44
jsDependencies ++= Dependencies .jsDeps.value,
36
45
37
46
sourceDirsSettings(_.getParentFile),
@@ -69,8 +78,8 @@ val compileStatics = taskKey[Unit]("Compiles all static files.")
69
78
val `jquery-bundler-demo` = project.in(file(" bundler-demo" ))
70
79
.enablePlugins(ScalaJSBundlerPlugin )
71
80
.settings(
72
- libraryDependencies ++= Dependencies .deps.value ,
73
-
81
+ commonSettings ,
82
+
74
83
sourceDirsSettings(_.getParentFile),
75
84
76
85
Compile / scalaJSUseMainModuleInitializer := true ,
0 commit comments