trait JSApp extends AnyRef
Base class for top-level, entry point main objects.
Before Scala.js 0.6.18, a top-level object had to extend js.JSApp
to be
recognized by the sbt plugin as a "main" object, to be executed with run
.
Starting with Scala.js 0.6.18, any object with a standard main method of
the form
def main(args: Array[String]): Unit = ???
will be recognized by the sbt plugin, just like for a JVM project.
In order for the main
method to be considered by the sbt plugin, set
scalaJSUseMainModuleInitializer := true
in your build.
JSApp is therefore deprecated, and should not be used anymore. It will disappear before 1.0.0 final.
Also note that an object extending JSApp is not exported to JavaScript
anymore, nor is its main()
method. Explicitly export the object and/or
its main method if necessary.
- Annotations
- @deprecated
- Deprecated
(Since version 1.0.0-M1)
- Alphabetic
- By Inheritance
- JSApp
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Concrete Value Members
-
final
def
!=(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (JSApp, B)
-
final
def
==(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def ensuring(cond: (JSApp) ⇒ Boolean, msg: ⇒ scala.Any): JSApp
- def ensuring(cond: (JSApp) ⇒ Boolean): JSApp
- def ensuring(cond: Boolean, msg: ⇒ scala.Any): JSApp
- def ensuring(cond: Boolean): JSApp
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def main(args: scala.Array[String]): Unit
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def →[B](y: B): (JSApp, B)