You can now refresh the webpage to test the above changes. Create the file src/main/scala/tutorial/webapp/TutorialApp.scala: package tutorial.webapp object TutorialApp HelloWorld applicationįor starters, we add a very simple TutorialApp in the tutorial.webapp package. Note that for compiling and running your application, you will still need to use sbt from the command line. If at this point you prefer to use an IDE, you can import the build into VS Code with Metals (or any other editor supported by Metals) or IntelliJ IDEA (see “Installation” here). That is all we need to configure the build. Last, we need a project/build.properties to specify the sbt version (you can find the latest version here): sbt. We also setup basic project settings and enable this plugin in the sbt build file ( build.sbt, in the project root directory): enablePlugins ( ScalaJSPlugin ) name := "Scala.js Tutorial" scalaVersion := "2.13.1" // or any other Scala version >= 2.11.12 // This is an application with a main method scalaJSUseMainModuleInitializer := true
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |