@@ -747,6 +747,39 @@ trait JsBuild { this: BuildCommons =>
747
747
" Bundle-Vendor" -> " Artima, Inc." ,
748
748
" Main-Class" -> " org.scalatest.tools.Runner"
749
749
)
750
- ).dependsOn(scalacticMacroJS % " compile-internal, test-internal" , scalatestCoreJS).enablePlugins(ScalaJSPlugin )
750
+ ).dependsOn(scalacticMacroJS % " compile-internal, test-internal" , scalatestCoreJS).enablePlugins(ScalaJSPlugin )
751
+
752
+ lazy val scalatestShouldMatchersJS = Project (" scalatestShouldMatchersJS" , file(" modules/js/scalatest-shouldmatchers.js" ))
753
+ .enablePlugins(SbtOsgi )
754
+ .settings(sharedSettings : _* )
755
+ .settings(
756
+ projectTitle := " ScalaTest Should Matchers JS" ,
757
+ organization := " org.scalatest" ,
758
+ name := " scalatest-shouldmatchers" ,
759
+ scalacOptions ++= Seq (" -P:scalajs:mapSourceURI:" + rootProject.base.toURI + " ->https://raw.githubusercontent.com/scalatest/scalatest/v" + version.value + " /" ),
760
+ Compile / sourceGenerators += {
761
+ Def .task {
762
+ GenModulesJS .genScalaTestShouldMatchers((sourceManaged in Compile ).value / " scala" , version.value, scalaVersion.value)
763
+ }
764
+ },
765
+ scalacOptions ++= (if (scalaBinaryVersion.value == " 2.10" || scalaVersion.value.startsWith(" 2.13" )) Seq .empty[String ] else Seq (" -Ypartial-unification" )),
766
+ mimaPreviousArtifacts := Set (organization.value %%% moduleName.value % previousReleaseVersion),
767
+ mimaCurrentClassfiles := (classDirectory in Compile ).value.getParentFile / (moduleName.value + " _" + " sjs0.6_" + scalaBinaryVersion.value + " -" + releaseVersion + " .jar" )
768
+ ).settings(osgiSettings : _* ).settings(
769
+ OsgiKeys .exportPackage := Seq (
770
+ " org.scalatest.matchers.should"
771
+ ),
772
+ OsgiKeys .importPackage := Seq (
773
+ " org.scalatest.*" ,
774
+ " *;resolution:=optional"
775
+ ),
776
+ OsgiKeys .additionalHeaders:= Map (
777
+ " Bundle-Name" -> " ScalaTest Should Matchers" ,
778
+ " Bundle-Description" -> " ScalaTest.js is an open-source test framework for the Javascript Platform designed to increase your productivity by letting you write fewer lines of test code that more clearly reveal your intent." ,
779
+ " Bundle-DocURL" -> " http://www.scalatest.org/" ,
780
+ " Bundle-Vendor" -> " Artima, Inc." ,
781
+ " Main-Class" -> " org.scalatest.tools.Runner"
782
+ )
783
+ ).dependsOn(scalacticMacroJS % " compile-internal, test-internal" , scalatestMatchersCoreJS).enablePlugins(ScalaJSPlugin )
751
784
752
785
}
0 commit comments