scalajsbundler.sbtplugin.ScalaJSBundlerPlugin

autoImport

object autoImport

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. autoImport
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val enableReloadWorkflow: SettingKey[Boolean]

    whether to enable the “reload workflow” for webpack in fastOptJS.

    whether to enable the “reload workflow” for webpack in fastOptJS.

    When enabled, dependencies are pre-bundled so that the output of fastOptJS can directly be executed by a web browser without being further processed by a bundling system. This reduces the delays when live-reloading the application on source modifications. Defaults to false.

    Note that the “reload workflow” does uses the custom webpack configuration file scoped to the webpackReload task.

    For example:

    webpackConfigFile in webpackReload := Some(baseDirectory.value / "webpack-reload.config.js"),
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. val installJsdom: TaskKey[File]

    Locally install jsdom.

    Locally install jsdom.

    You can set the jsdom package version to install with the key version in installJsdom.

    Returns the installation directory.

  15. val installWebpackDevServer: TaskKey[File]

    Locally install webpack-dev-server.

    Locally install webpack-dev-server.

    You can set the webpack-dev-server package version to install with the key version in installWebpackDevServer.

    Returns the installation directory.

  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. val npmDependencies: SettingKey[Seq[(String, String)]]

    List of the NPM packages (name and version) your application depends on.

    List of the NPM packages (name and version) your application depends on. You can use [semver](https://docs.npmjs.com/misc/semver) versions:

    npmDependencies in Compile += "uuid" -> "~3.0.0"

    Note that this key must be scoped by a Configuration (either Compile or Test).

  21. val npmDevDependencies: SettingKey[Seq[(String, String)]]

  22. val npmResolutions: SettingKey[Map[String, String]]

    Map of NPM packages (name -> version) to use in case transitive NPM dependencies refer to a same package but with different version numbers.

    Map of NPM packages (name -> version) to use in case transitive NPM dependencies refer to a same package but with different version numbers. In such a case, this setting defines which version should be used for the conflicting package. Example:

    npmResolutions in Compile := Map("react" -> "15.4.1")

    If several Scala.js projects depend on different versions of react, the version 15.4.1 will be picked. But if all the projects depend on the same version of react, the version given in npmResolutions will be ignored.

    Note that this key must be scoped by a Configuration (either Compile or Test).

  23. val npmUpdate: TaskKey[File]

    Fetches NPM dependencies.

    Fetches NPM dependencies. Returns the directory in which the npm install command has been run.

    The plugin uses different directories according to the configuration (Compile or Test). Thus, this setting is scoped by a Configuration.

    Typically, if you want to define a task that uses the downloaded NPM packages you should specify the Configuration you are interested in:

    myCustomTask := {
    val npmDirectory = (npmUpdate in Compile).value
    doSomething(npmDirectory / "node_modules" / "some-package")
    }

    The task returns the directory in which the dependencies have been fetched (the directory that contains the node_modules directory).

  24. val startWebpackDevServer: TaskKey[Unit]

    Start background webpack-dev-server process.

    Start background webpack-dev-server process.

    If webpack-dev-server is already running, it will be restarted.

    The started webpack-dev-server receives the following arguments: - --config is set to value of webpackConfigFile setting. - --port is set to value of webpackDevServerPort setting. - Contents of webpackDevServerExtraArgs setting.

    See also

    webpackDevServerExtraArgs

    webpackDevServerPort

    stopWebpackDevServer

  25. val stopWebpackDevServer: TaskKey[Unit]

    Stop running webpack-dev-server process.

    Stop running webpack-dev-server process.

    Does nothing if the server is not running.

    See also

    startWebpackDevServer

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. val useYarn: SettingKey[Boolean]

    Whether to use Yarn to fetch dependencies instead of npm.

    Whether to use Yarn to fetch dependencies instead of npm. Yarn has a caching mechanism that makes the process faster.

    If set to true, it requires the yarn command to be available in the host platform.

    Defaults to false.

  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. val webpack: TaskKey[Seq[File]]

    Bundles the output of a Scala.

    Bundles the output of a Scala.js stage.

    This task must be scoped by a Scala.js stage (either fastOptJS or fullOptJS) and a Configuration (either Compile or Test).

    For instance, to bundle the output of fastOptJS, run the following task from the sbt shell:

    fastOptJS::webpack

    Or, in an sbt build definition:

    webpack in (Compile, fastOptJS)

    Note that to scope the task to a different project than the “current” sbt project, you have to write the following:

    webpack in (projectRef, Compile, fastOptJS in projectRef)

    The task returns the produced bundles.

    The task is cached, so webpack is only launched when some of the used files have changed. The list of files to be monitored is provided by webpackMonitoredFiles

  33. val webpackConfigFile: SettingKey[Option[File]]

    configuration file to use with webpack.

    configuration file to use with webpack. By default, the plugin generates a configuration file, but you can supply your own file via this setting. Example of use:

    webpackConfigFile in fullOptJS := Some(baseDirectory.value / "my.dev.webpack.config.js")

    You can find more insights on how to write a custom configuration file in the cookbook.

  34. val webpackDevServerExtraArgs: SettingKey[Seq[String]]

    Additional arguments to webpack-dev-server.

    Additional arguments to webpack-dev-server.

    Defaults to an empty list.

    See also

    startWebpackDevServer

  35. val webpackDevServerPort: SettingKey[Int]

    Port, on which webpack-dev-server will be launched.

    Port, on which webpack-dev-server will be launched.

    Defaults to 8080.

    See also

    startWebpackDevServer

  36. val webpackEmitSourceMaps: SettingKey[Boolean]

    whether to enable (or not) source-map in a given configuration (Compile or Test) and stage (fastOptJS or fullOptJS).

    whether to enable (or not) source-map in a given configuration (Compile or Test) and stage (fastOptJS or fullOptJS). Example of use:

    webpackEmitSourceMaps in (Compile, fullOptJS) := false

    Note that, by default, this setting takes the same value as the Scala.js’ emitSourceMaps setting, so, to globally disable source maps you can just configure the emitSourceMaps setting:

    emitSourceMaps := false
  37. val webpackEntries: TaskKey[Seq[(String, File)]]

    List of entry bundles to generate.

    List of entry bundles to generate. By default it generates just one bundle for your main class.

  38. val webpackMonitoredDirectories: SettingKey[Seq[File]]

    Additional directories, monitored for webpack launch.

    Additional directories, monitored for webpack launch.

    Changes to files in these directories that match includeFilter scoped to webpackMonitoredFiles enable webpack launch in webpack task.

    Defaults to an empty Seq.

    See also

    webpackMonitoredFiles

  39. val webpackMonitoredFiles: TaskKey[Seq[File]]

    List of files, monitored for webpack launch.

    List of files, monitored for webpack launch.

    By default includes the following files:

    • Generated package.json
    • Generated webpack config
    • Custom webpack config (if any)
    • Files, provided by webpackEntries task.
    • Files from webpackMonitoredDirectories, filtered by includeFilter
    See also

    webpack

    webpackMonitoredDirectories

  40. val webpackReload: TaskKey[Seq[File]]

    Bundles the output of a Scala.

    Bundles the output of a Scala.js stage using the reload workflow.

    This is equivalent to running fastOptJS::webpack with reloadWorkflow := true. This task must be scoped by the Scala.js fastOptJS stage.

    For instance, to bundle the output of fastOptJS, run the following task from the sbt shell:

    fastOptJS::webpackReload

    To use a custom webpack configuration file use:

    webpackConfigFile in webpackReload := Some(baseDirectory.value / "webpack-reload.config.js"),
  41. val webpackResources: SettingKey[PathFinder]

    Webpack configuration files to copy to the target directory.

    Webpack configuration files to copy to the target directory. These files can be merged into the main configuration file.

    By default all .js files in the project base directory are copied:

    baseDirectory.value * "*.js"

    How to share these configuration files among your webpack config files is documented in the cookbook.

Inherited from AnyRef

Inherited from Any

Settings

Tasks

Ungrouped