Builder to allow declarations like:
Creates a Def.Initialize for a PhantomJSEnv.
Creates a Def.Initialize for a PhantomJSEnv. Use this to explicitly specify in your build that you would like to run with PhantomJS:
jsEnv := PhantomJSEnv().value
Note that the resulting Setting is not scoped at all, but must be scoped in a project that has the ScalaJSPlugin enabled to work properly. Therefore, either put the upper line in your project settings (common case) or scope it manually, using Project.inScope.
Builder to allow declarations like:
Dummy builder to allow declaractions like:
Dummy builder to allow declaractions like:
RuntimeDOM % "test"
Class loader for PhantomJSEnv.
Class loader for PhantomJSEnv. Used to load jetty8.
Prints the content of a .
Prints the content of a .sjsir file in human readable form.
Creates a Def.Initialize for a JSDOMNodeJSEnv.
Creates a Def.Initialize for a JSDOMNodeJSEnv. Use this to explicitly specify in your build that you would like to run with Node.js on a JSDOM window:
jsEnv := JSDOMNodeJSEnv().value
Note that the resulting Setting is not scoped at all, but must be scoped in a project that has the ScalaJSPlugin enabled to work properly. Therefore, either put the upper line in your project settings (common case) or scope it manually, using Project.inScope.
(Since version 0.6.16)
Creates a Def.Initialize for a NodeJSEnv.
Creates a Def.Initialize for a NodeJSEnv. Use this to explicitly specify in your build that you would like to run with Node.js:
jsEnv := NodeJSEnv().value
Note that the resulting Setting is not scoped at all, but must be scoped in a project that has the ScalaJSPlugin enabled to work properly. Therefore, either put the upper line in your project settings (common case) or scope it manually, using Project.inScope.
(Since version 0.6.16) Use jsEnv := new org.scalajs.jsenv.nodejs.NodeJSEnv(...)
instead.
(Since version 0.6.6) Use FastOptStage instead
Creates a Def.Initialize for a RhinoJSEnv.
Creates a Def.Initialize for a RhinoJSEnv.
Use this to explicitly specify in your build that you would like to run with Rhino:
Seq(Compile, Test).flatMap(c => inConfig(c)(jsEnv := RhinoJSEnv().value))
The Rhino JS environment will support DOM through env.js
if and only
if scalaJSRequestsDOM.value
evaluates to true
.
Note that the resulting Setting must be scoped in a
project that has the ScalaJSPlugin
enabled to work properly.
Therefore, either put the upper line in your project settings (common
case) or scope it manually, using
Project.inScope.
(Since version 0.6.13)
(Since version 0.6.15)
(Since version 0.6.15)
(Since version 0.6.6) Use jsEnv instead.
(Since version 0.6.6) Use jsEnv instead.
(Since version 0.6.15)
(Since version 0.6.15)
(Since version 0.6.13)