Skip to content

Commit 64d0b70

Browse files
committed
Support Scala.js
1 parent a8de82e commit 64d0b70

File tree

5 files changed

+15
-1
lines changed

5 files changed

+15
-1
lines changed

build.sbt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.0" % Test
1+
publishArtifact := false
22

33
organization in ThisBuild := "com.thoughtworks.extractor"
44

55
name := "extractor"
66

77
crossScalaVersions in ThisBuild := Seq("2.10.6", "2.11.8", "2.12.0-RC1")
8+
9+
lazy val extractor = crossProject in file(".")
10+
11+
lazy val extractorJVM = extractor.jvm.addSbtFiles(file("../shared/build.sbt"))
12+
13+
lazy val extractorJS = extractor.js.addSbtFiles(file("../shared/build.sbt"))
14+
15+
// Workaround for randomly Travis CI fail
16+
parallelExecution in Global := false

project/plugins.sbt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
addSbtPlugin("com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "1.6.0")
2+
3+
addSbtPlugin("com.thoughtworks.sbt-scala-js-map" % "sbt-scala-js-map" % "latest.release")
4+
5+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.12")

shared/build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.0.0" % Test
File renamed without changes.

src/test/scala/com/thoughtworks/ExtractorSpec.scala renamed to shared/src/test/scala/com/thoughtworks/ExtractorSpec.scala

File renamed without changes.

0 commit comments

Comments
 (0)