Skip to content

Commit b57fc34

Browse files
committed
Merge pull request scala-js#3 from sjrd/scala-js-0.6.6
Upgrade to vanilla Scala.js 0.6.6.
2 parents e6239c5 + d387254 commit b57fc34

File tree

3 files changed

+19
-24
lines changed

3 files changed

+19
-24
lines changed

.travis.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
sudo: false
22
language: scala
3-
install:
4-
- git clone https://github.com/scala-js/scala-js.git
5-
- cd scala-js
6-
- sbt ++$TRAVIS_SCALA_VERSION compiler/publishLocal library/publishLocal javalibEx/publishLocal testInterface/publishLocal stubs/publishLocal jasmineTestFramework/publishLocal jUnitRuntime/publishLocal jUnitPlugin/publishLocal
7-
- sbt ++2.10.6 ir/publishLocal tools/publishLocal jsEnvs/publishLocal testAdapter/publishLocal sbtPlugin/publishLocal
8-
- cd ..
93
script:
104
- sbt ++$TRAVIS_SCALA_VERSION root/scalastyle testSuiteJVM/scalastyle testSuiteJVM/test:scalastyle testSuite/scalastyle testSuite/test:scalastyle
115
- sbt ++$TRAVIS_SCALA_VERSION testSuiteJVM/test

build.sbt

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
import sbt.Keys._
22
import org.scalajs.sbtplugin.cross.CrossProject
33

4+
val commonSettings: Seq[Setting[_]] = Seq(
5+
version := "0.0.1-SNAPSHOT",
6+
organization := "org.scala-js",
7+
scalaVersion := "2.11.7",
8+
scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings"),
9+
homepage := Some(url(http://github.com/%3Cspan%20class=%22pl-s%22%3E%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3Ehttp://scala-js.org/%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3E%3C/span%3E)),
10+
licenses += ("MIT", url(http://github.com/%3Cspan%20class=%22pl-s%22%3E%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3Ehttp://opensource.org/licenses/mit-license.php%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3E%3C/span%3E))
11+
)
12+
413
lazy val root: Project = project.in(file(".")).
5-
enablePlugins(ScalaJSPlugin)
14+
enablePlugins(ScalaJSPlugin).
15+
settings(commonSettings).
16+
settings(
17+
name := "scalajs-java-time"
18+
)
619

720
lazy val testSuite = CrossProject(
821
jvmId = "testSuiteJVM",
@@ -11,32 +24,20 @@ lazy val testSuite = CrossProject(
1124
crossType = CrossType.Full
1225
).
1326
jsConfigure(_ .enablePlugins(ScalaJSJUnitPlugin)).
27+
settings(commonSettings: _*).
1428
settings(
1529
testOptions +=
1630
Tests.Argument(TestFramework("com.novocode.junit.JUnitFramework"), "-v", "-a")
1731
).
1832
jsSettings(
1933
name := "java.time testSuite on JS"
2034
).
35+
jsConfigure(_.dependsOn(root)).
2136
jvmSettings(
2237
name := "java.time testSuite on JVM",
2338
libraryDependencies +=
2439
"com.novocode" % "junit-interface" % "0.9" % "test"
2540
)
2641

27-
lazy val testSuiteJS = testSuite.js.dependsOn(root)
28-
lazy val testSuiteJVM = testSuite.jvm.dependsOn(root)
29-
30-
name := "scalajs-java-time"
31-
32-
version := "0.0.1-SNAPSHOT"
33-
34-
organization := "org.scala-js"
35-
36-
scalaVersion := "2.11.7"
37-
38-
scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings")
39-
40-
homepage := Some(url(http://github.com/%3Cspan%20class=%22pl-s%22%3E%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3Ehttp://scala-js.org/%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3E%3C/span%3E))
41-
42-
licenses += ("MIT", url(http://github.com/%3Cspan%20class=%22pl-s%22%3E%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3Ehttp://opensource.org/licenses/mit-license.php%3Cspan%20class=%22pl-pds%22%3E"%3C/span%3E%3C/span%3E))
42+
lazy val testSuiteJS = testSuite.js
43+
lazy val testSuiteJVM = testSuite.jvm

project/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.6-SNAPSHOT")
1+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.6")
22

33
addSbtPlugin("org.scalastyle" % "scalastyle-sbt-plugin" % "0.8.0")

0 commit comments

Comments
 (0)