Skip to content

Commit 184c33f

Browse files
committed
Add initial project configuration.
1 parent f771e51 commit 184c33f

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

build.sbt

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import sbt.Keys._
2+
import org.scalajs.sbtplugin.cross.CrossProject
3+
4+
lazy val root: Project = project.in(file(".")).
5+
enablePlugins(ScalaJSPlugin)
6+
7+
lazy val testSuite = CrossProject(
8+
jvmId = "testSuiteJVM",
9+
jsId = "testSuite",
10+
base = file("testSuite"),
11+
crossType = CrossType.Full
12+
).
13+
jsConfigure(_ .enablePlugins(ScalaJSJUnitPlugin)).
14+
settings(
15+
testOptions +=
16+
Tests.Argument(TestFramework("com.novocode.junit.JUnitFramework"), "-v", "-a")
17+
).
18+
jsSettings(
19+
name := "java.time testSuite on JS"
20+
).
21+
jvmSettings(
22+
name := "java.time testSuite on JVM",
23+
libraryDependencies +=
24+
"com.novocode" % "junit-interface" % "0.9" % "test"
25+
)
26+
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))

project/build.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sbt.version=0.13.9

project/build.sbt

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

0 commit comments

Comments
 (0)