diff options
Diffstat (limited to 'build.sbt')
-rw-r--r-- | build.sbt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt new file mode 100644 index 0000000..0708cb1 --- /dev/null +++ b/build.sbt @@ -0,0 +1,25 @@ +// shadow sbt-scalajs' crossProject and CrossType until Scala.js 1.0.0 is released +import sbtcrossproject.{crossProject, CrossType} + +lazy val yamlesque = crossProject(JSPlatform, JVMPlatform, NativePlatform) + .crossType(CrossType.Pure) + .settings( + libraryDependencies += "com.lihaoyi" %%% "utest" % "0.6.4" % "test", + testFrameworks += new TestFramework("utest.runner.Framework"), + scalaVersion := crossScalaVersions.value.head + + ) + .jvmSettings( + crossScalaVersions := "2.12.4" :: "2.11.12" :: Nil + ) + .jsSettings( + crossScalaVersions := "2.12.4" :: "2.11.12" :: Nil + ) + .nativeSettings( + crossScalaVersions := "2.11.12" :: Nil, + nativeLinkStubs := true // required for utest + ) + +lazy val yamlesqueJVM = yamlesque.jvm +lazy val yamlesqueJS = yamlesque.js +lazy val yamlesqueNative = yamlesque.native |