@@ -4,7 +4,7 @@ val scalaJsReact = "1.1.1"
4
4
5
5
parallelExecution in (ThisBuild , Test ) := false
6
6
7
- val `scalajs-react-virtualized` =
7
+ val root =
8
8
project.in(file(" ." ))
9
9
.settings(commonSettings : _* )
10
10
.aggregate(facade, demo)
@@ -24,9 +24,14 @@ lazy val demo =
24
24
.settings(commonSettings : _* )
25
25
.settings(
26
26
scalaJSUseMainModuleInitializer := true ,
27
- webpackBundlingMode := BundlingMode .LibraryOnly (),
28
- webpackDevServerExtraArgs := Seq (" --inline" ),
29
- webpackConfigFile in fastOptJS := Some (baseDirectory.value / " dev.webpack.config.js" )
27
+ webpackBundlingMode := BundlingMode .LibraryOnly (),
28
+ webpackDevServerExtraArgs := Seq (" --inline" ),
29
+ webpackConfigFile in fastOptJS := Some (baseDirectory.value / " dev.webpack.config.js" ),
30
+ // don't publish the demo
31
+ publish := {},
32
+ publishLocal := {},
33
+ publishArtifact := false ,
34
+ Keys .`package` := file(" " )
30
35
)
31
36
.dependsOn(facade)
32
37
@@ -35,48 +40,48 @@ lazy val facade =
35
40
.enablePlugins(ScalaJSBundlerPlugin )
36
41
.settings(commonSettings : _* )
37
42
.settings(
38
- name := " scalajs-react-virtualized" ,
39
- npmDependencies in Compile ++= Seq (
43
+ name := " scalajs-react-virtualized" ,
44
+ npmDependencies in Compile ++= Seq (
40
45
" react" -> reactJS,
41
46
" react-dom" -> reactJS,
42
47
" react-virtualized" -> reactVirtualized
43
48
),
44
49
// Requires the DOM for tests
45
- requiresDOM in Test := true ,
50
+ requiresDOM in Test := true ,
46
51
// Use yarn as it is faster than npm
47
- useYarn := true ,
48
- version in webpack := " 3.5.5" ,
52
+ useYarn := true ,
53
+ version in webpack := " 3.5.5" ,
49
54
scalaJSUseMainModuleInitializer := false ,
50
55
// Compile tests to JS using fast-optimisation
51
- scalaJSStage in Test := FastOptStage
56
+ scalaJSStage in Test := FastOptStage
52
57
)
53
58
54
59
lazy val commonSettings = Seq (
55
- scalaVersion := " 2.12.4" ,
56
- version := " 0.0.2-SNAPSHOT" ,
57
- organization := " io.github.cquiroz" ,
58
- description := " scala.js facade for react-virtualized" ,
59
- homepage := Some (url(" https://github.com/cquiroz/scalajs-react-virtualized" )),
60
- licenses := Seq (" BSD 3-Clause License" -> url(" https://opensource.org/licenses/BSD-3-Clause" )),
61
- useGpg := true ,
60
+ scalaVersion := " 2.12.4" ,
61
+ version := " 0.0.2-SNAPSHOT" ,
62
+ organization := " io.github.cquiroz" ,
63
+ description := " scala.js facade for react-virtualized" ,
64
+ homepage := Some (url(" https://github.com/cquiroz/scalajs-react-virtualized" )),
65
+ licenses := Seq (" BSD 3-Clause License" -> url(" https://opensource.org/licenses/BSD-3-Clause" )),
66
+ useGpg := true ,
62
67
publishArtifact in Test := false ,
63
- publishMavenStyle := true ,
64
- publishTo := {
68
+ publishMavenStyle := true ,
69
+ publishTo := {
65
70
val nexus = " https://oss.sonatype.org/"
66
71
if (isSnapshot.value)
67
72
Some (" snapshots" at nexus + " content/repositories/snapshots" )
68
73
else
69
74
Some (" releases" at nexus + " service/local/staging/deploy/maven2" )
70
75
},
71
- pomExtra := pomData,
72
- pomIncludeRepository := { _ => false },
73
- libraryDependencies ++= Seq (
76
+ pomExtra := pomData,
77
+ pomIncludeRepository := { _ => false },
78
+ libraryDependencies ++= Seq (
74
79
" com.github.japgolly.scalajs-react" %%% " core" % scalaJsReact,
75
80
" com.github.japgolly.scalajs-react" %%% " test" % scalaJsReact % " test" ,
76
81
" org.scalatest" %%% " scalatest" % " 3.0.3" % Test ,
77
82
" org.typelevel" %%% " cats-core" % " 1.0.0-MF" % Test
78
83
),
79
- scalacOptions := Seq (
84
+ scalacOptions := Seq (
80
85
" -deprecation" , // Emit warning and location for usages of deprecated APIs.
81
86
" -encoding" , " utf-8" , // Specify character encoding used by source files.
82
87
" -explaintypes" , // Explain type errors in more detail.
0 commit comments