Guest User

Untitled

a guest
Apr 25th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. // Lib.scala
  2. object Lib {
  3. @JSExportTopLevel("foo")
  4. val foo: js.Function1[js.Any, _] = { robot =>
  5. println("Hello wolrd!")
  6. }
  7. }
  8. // build.sbt
  9. enablePlugins(ScalaJSPlugin, ScalaJSBundlerPlugin)
  10. name := "Scalafmt Probot"
  11. scalaVersion := "2.12.5"
  12. npmDependencies in Compile += "probot" -> "6.1.0"
  13. scalaJSModuleKind := ModuleKind.CommonJSModule
Add Comment
Please, Sign In to add comment