Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit 1dd366c

Browse files
committed
Project improvements
1 parent f973f9d commit 1dd366c

File tree

1 file changed

+28
-23
lines changed

1 file changed

+28
-23
lines changed

build.sbt

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ val scalaJsReact = "1.1.1"
44

55
parallelExecution in (ThisBuild, Test) := false
66

7-
val `scalajs-react-virtualized` =
7+
val root =
88
project.in(file("."))
99
.settings(commonSettings: _*)
1010
.aggregate(facade, demo)
@@ -24,9 +24,14 @@ lazy val demo =
2424
.settings(commonSettings: _*)
2525
.settings(
2626
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("")
3035
)
3136
.dependsOn(facade)
3237

@@ -35,48 +40,48 @@ lazy val facade =
3540
.enablePlugins(ScalaJSBundlerPlugin)
3641
.settings(commonSettings: _*)
3742
.settings(
38-
name := "scalajs-react-virtualized",
39-
npmDependencies in Compile ++= Seq(
43+
name := "scalajs-react-virtualized",
44+
npmDependencies in Compile ++= Seq(
4045
"react" -> reactJS,
4146
"react-dom" -> reactJS,
4247
"react-virtualized" -> reactVirtualized
4348
),
4449
// Requires the DOM for tests
45-
requiresDOM in Test := true,
50+
requiresDOM in Test := true,
4651
// 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",
4954
scalaJSUseMainModuleInitializer := false,
5055
// Compile tests to JS using fast-optimisation
51-
scalaJSStage in Test := FastOptStage
56+
scalaJSStage in Test := FastOptStage
5257
)
5358

5459
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,
6267
publishArtifact in Test := false,
63-
publishMavenStyle := true,
64-
publishTo := {
68+
publishMavenStyle := true,
69+
publishTo := {
6570
val nexus = "https://oss.sonatype.org/"
6671
if (isSnapshot.value)
6772
Some("snapshots" at nexus + "content/repositories/snapshots")
6873
else
6974
Some("releases" at nexus + "service/local/staging/deploy/maven2")
7075
},
71-
pomExtra := pomData,
72-
pomIncludeRepository := { _ => false },
73-
libraryDependencies ++= Seq(
76+
pomExtra := pomData,
77+
pomIncludeRepository := { _ => false },
78+
libraryDependencies ++= Seq(
7479
"com.github.japgolly.scalajs-react" %%% "core" % scalaJsReact,
7580
"com.github.japgolly.scalajs-react" %%% "test" % scalaJsReact % "test",
7681
"org.scalatest" %%% "scalatest" % "3.0.3" % Test,
7782
"org.typelevel" %%% "cats-core" % "1.0.0-MF" % Test
7883
),
79-
scalacOptions := Seq(
84+
scalacOptions := Seq(
8085
"-deprecation", // Emit warning and location for usages of deprecated APIs.
8186
"-encoding", "utf-8", // Specify character encoding used by source files.
8287
"-explaintypes", // Explain type errors in more detail.

0 commit comments

Comments
 (0)