File tree Expand file tree Collapse file tree 6 files changed +50
-17
lines changed Expand file tree Collapse file tree 6 files changed +50
-17
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,14 @@ before_deploy:
2929
3030deploy :
3131 - provider : script
32- script : sbt ++$TRAVIS_SCALA_VERSION "set every Seq(sonatypeSessionName := \"Travis Job $TRAVIS_JOB_NAME $TRAVIS_JOB_NUMBER ($TRAVIS_JOB_WEB_URL)\", publishTo := sonatypePublishToBundle.value)" publishSigned sonatypeBundleRelease
32+ script : sbt $SBT_ARGS ++$TRAVIS_SCALA_VERSION "set every Seq(sonatypeSessionName := \"Travis Job $TRAVIS_JOB_NAME $TRAVIS_JOB_NUMBER ($TRAVIS_JOB_WEB_URL)\", publishTo := sonatypePublishToBundle.value)" publishSigned sonatypeBundleRelease
3333 skip_cleanup : true
3434 on :
3535 all_branches : true
3636 condition : $GITHUB_PERSONAL_ACCESS_TOKEN
37+
38+ env :
39+ - SBT_ARGS=
40+ - SBT_ARGS=--addPluginSbtFile=project/plugins.sbt.scalajs06
41+
42+ sbt_args : $SBT_ARGS
Original file line number Diff line number Diff line change 1+ import sbtcrossproject .CrossPlugin .autoImport .{crossProject , CrossType }
2+
13Global / parallelExecution := false
24
35publish / skip := true
46
57organization in ThisBuild := " com.thoughtworks.binding"
68
7- lazy val bindable = crossProject in file(" ." )
8- lazy val bindableJVM = bindable.jvm
9- lazy val bindableJS = bindable.js
9+ lazy val bindable = crossProject(JVMPlatform , JSPlatform ) in file(" ." )
Original file line number Diff line number Diff line change 1+ enablePlugins(ScalaJSBundlerPlugin )
2+
13enablePlugins(Example )
24
3- libraryDependencies += " com.thoughtworks.binding" %%% " jspromisebinding" % " 12.0.0-M0 "
5+ libraryDependencies += " com.thoughtworks.binding" %%% " jspromisebinding" % " 12.0.0-M1 "
46
57addCompilerPlugin(" org.typelevel" %% " kind-projector" % " 0.10.3" )
68
7- jsDependencies in Test += RuntimeDOM
8-
9- inConfig(Test ) {
10- jsEnv := RhinoJSEnv ().value
11- }
9+ requireJsDomEnv in Test := true
Original file line number Diff line number Diff line change @@ -8,7 +8,11 @@ addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")
88
99addSbtPlugin(" org.lyranthe.sbt" % " partial-unification" % " 1.1.2" )
1010
11- addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 0.6.32" )
11+ addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 1.0.1" )
12+
13+ addSbtPlugin(" org.portable-scala" % " sbt-scalajs-crossproject" % " 1.0.0" )
14+
15+ addSbtPlugin(" ch.epfl.scala" % " sbt-scalajs-bundler" % " 0.17.0" )
1216
1317addSbtPlugin(" com.thoughtworks.sbt-scala-js-map" % " sbt-scala-js-map" % " 4.0.0" )
1418
Original file line number Diff line number Diff line change 1+ // An optional sbt file to replace Scala.js 1.0 with 0.6
2+ dependencyOverrides += Defaults.sbtPluginExtra(
3+ "org.scala-js" % "sbt-scalajs" % "0.6.32",
4+ sbtBinaryVersion.value,
5+ scalaBinaryVersion.value,
6+ )
7+
8+ dependencyOverrides += Defaults.sbtPluginExtra(
9+ "ch.epfl.scala" % "sbt-scalajs-bundler" % "0.15.0-0.6",
10+ sbtBinaryVersion.value,
11+ scalaBinaryVersion.value,
12+ )
13+
14+ Compile / sourceGenerators += Def.task {
15+ val file = (Compile / sourceManaged).value / "SkipPublishForNonScalaJSProjects.scala"
16+ IO.write(file, """
17+ import scalajscrossproject.ScalaJSCrossPlugin.autoImport._
18+ import sbtcrossproject.CrossPlugin.autoImport._
19+ import sbt._, Keys._
20+ object SkipPublishForNonScalaJSProjects extends AutoPlugin {
21+ override def trigger = allRequirements
22+ override def projectSettings = Seq(
23+ publish / skip := crossProjectPlatform.value != JSPlatform
24+ )
25+ }
26+ """)
27+ Seq(file)
28+ }.taskValue
Original file line number Diff line number Diff line change 11libraryDependencies += " org.scalatest" %%% " scalatest" % " 3.1.1" % Test
22
3- libraryDependencies += " com.thoughtworks.binding" %%% " binding" % " 12.0.0-M0"
4-
5- libraryDependencies += " com.thoughtworks.binding" %%% " futurebinding" % " 12.0.0-M0"
6-
7- libraryDependencies += " com.thoughtworks.binding" %%% " futurebinding" % " 12.0.0-M0"
3+ libraryDependencies += " com.thoughtworks.binding" %%% " binding" % " 12.0.0-M1"
84
5+ libraryDependencies += " com.thoughtworks.binding" %%% " futurebinding" % " 12.0.0-M1"
96
107libraryDependencies += " org.typelevel" %% " simulacrum" % " 1.0.0"
118
129libraryDependencies += " com.thoughtworks.enableIf" %% " enableif" % " 1.1.7"
1310
14- scalacOptions += " -Ymacro-annotations"
11+ scalacOptions += " -Ymacro-annotations"
You can’t perform that action at this time.
0 commit comments