文件名称:ember-cli-scala:将使用 Scala.js 编译成 JavaScript 的 Scala 文件导入您的 Ember 应用程序
文件大小:20KB
文件格式:ZIP
更新时间:2024-07-09 13:57:34
JavaScript
余烬-cli-scala 将使用编译为 JavaScript 的文件导入您的应用程序。 安装 ember install:addon ember-cli-scala 用法 app/scala/Robot.scala : package robot import scala . scalajs . js import js . annotation . JSExport @ JSExport object Robot { @ JSExport def destroyHumans ( num : Int = 10 ) : String = { " Destroying " + num + " humans. " } } 代码中的其他地方: import Robot from 'namespace/scala/Robot.js' ; var robot = Rob
【文件预览】:
ember-cli-scala-master
----.gitignore(247B)
----README.md(812B)
----CHANGELOG.md(82B)
----.bowerrc(60B)
----.ember-cli(280B)
----tests()
--------test-helper.js(112B)
--------dummy()
--------unit()
--------.jshintrc(814B)
--------helpers()
--------index.html(960B)
----app()
--------.gitkeep(0B)
----.jshintrc(518B)
----bower.json(503B)
----package.json(2KB)
----vendor()
--------.gitkeep(0B)
----testem.json(170B)
----index.js(495B)
----config()
--------environment.js(90B)
----LICENSE.md(1KB)
----addon()
--------.gitkeep(0B)
--------scala()
----.npmignore(130B)
----.travis.yml(245B)
----.editorconfig(514B)
----lib()
--------scala-compiler.js(3KB)
----Brocfile.js(738B)