Builder to allow declarations like:
Creates a Def.Initialize for a PhantomJSEnv with the default configuration.
Creates a Def.Initialize for a PhantomJSEnv with the default configuration.
This is equivalent to
PhantomJSEnv(org.scalajs.jsenv.phantomjs.PhantomJSEnv.Config())
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
The specified Config
is augmented with an appropriate Jetty class
loader (through withJettyClassLoader
).
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:
Persisted instance of the Scala.
Persisted instance of the Scala.js linker.
This setting must be scoped per project, configuration, and stage task
(fastOptJS
or fullOptJS
).
If a task uses the link
method of the ClearableLinker
, it must be
protected from running in parallel with any other task doing the same
thing, by tagging the task with the value of usesScalaJSLinkerTag
in the same scope. The typical shape of such a task will be:
myTask in (Compile, fastOptJS) := Def.taskDyn { val linker = (scalaJSLinker in (Compile, fastOptJS)).value val usesLinkerTag = (usesScalaJSLinkerTag in (Compile, fastOptJS)).value // Read the `.value` of other settings and tasks here Def.task { // Do the actual work of the task here, in particular calling linker.link(...) }.tag(usesLinkerTag) }.value,
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.
All .
All .sjsir files on the fullClasspath, used by scalajsp.
A tag to indicate that a task is using the value of scalaJSLinker
and its link
method.
A tag to indicate that a task is using the value of scalaJSLinker
and its link
method.
This setting's value should always be retrieved from the same scope than scalaJSLinker was retrieved from.
(Since version 0.6.23)
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.
Creates a Def.Initialize for a PhantomJSEnv.
Creates a Def.Initialize for a PhantomJSEnv.
(Since version 0.6.20) Use the overload with a PhantomJSEnv.Config.
(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)
Dummy builder to allow declaractions like:
Dummy builder to allow declaractions like:
RuntimeDOM % "test"
(Since version 0.6.20)
(Since version 0.6.23)
(Since version 0.6.23)
(Since version 0.6.23)
(Since version 0.6.23)
(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.20)
(Since version 0.6.15)
(Since version 0.6.15)
(Since version 0.6.13)
(Since version 0.6.23)
(Since version 0.6.23)