This repository was archived by the owner on Jul 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +19
-5
lines changed Expand file tree Collapse file tree 4 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 10
10
- openjdk11
11
11
12
12
env :
13
- - TRAVIS_NODE_VERSION="12.10.0" JOB_NAME="test"
13
+ global :
14
+ - TRAVIS_NODE_VERSION="12.10.0" JOB_NAME="test"
15
+ matrix :
16
+ - SCALAJS_VERSION="0.6.32"
17
+ - SCALAJS_VERSION="1.0.0"
14
18
15
19
script :
16
20
- sbt ++$TRAVIS_SCALA_VERSION test
Original file line number Diff line number Diff line change 1
- import org .scalajs .sbtplugin .ScalaJSPlugin .AutoImport .{ ModuleKind , scalaJSModuleKind }
1
+ import org .scalajs .sbtplugin .ScalaJSPlugin .autoImport . _
2
2
import sbt ._
3
3
import sbt .Keys ._
4
4
import sbtrelease .ReleasePlugin .autoImport ._
@@ -56,8 +56,12 @@ object MySettings {
56
56
)
57
57
58
58
lazy val commonScalaJsSettings = Seq (
59
- scalacOptions += " -P:scalajs:sjsDefinedByDefault" ,
60
- scalaJSModuleKind := ModuleKind .CommonJSModule ,
59
+ scalacOptions ++= Seq (" -P:scalajs:sjsDefinedByDefault" ).filter { _ =>
60
+ Option (System .getenv(" SCALAJS_VERSION" )).getOrElse(" 1.0.0" ).startsWith(" 0.6." )
61
+ },
62
+ scalaJSLinkerConfig ~= {
63
+ _.withModuleKind(ModuleKind .CommonJSModule )
64
+ },
61
65
logBuffered in Test := true
62
66
)
63
67
Original file line number Diff line number Diff line change 1
- addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 0.6.32" )
1
+ val scalaJSVersion =
2
+ Option (System .getenv(" SCALAJS_VERSION" )).getOrElse(" 1.0.0" )
3
+
4
+ addSbtPlugin(" org.scala-js" % " sbt-scalajs" % scalaJSVersion)
2
5
addSbtPlugin(" org.scalameta" % " sbt-scalafmt" % " 2.3.1" )
3
6
addSbtPlugin(" org.xerial.sbt" % " sbt-sonatype" % " 3.8.1" )
4
7
addSbtPlugin(" com.github.gseitz" % " sbt-release" % " 1.0.13" )
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
3
+ console . log ( "AYY! !" ) ;
You can’t perform that action at this time.
0 commit comments