opvasger/develm/2.0.0

NOTE: the latest version is 6.0.1

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/opvasger/develm is gone (deleted or private); Software Heritage not asked yet (this run's --swh-calls were used up); no fork with the same repo name found; no cached copy. Use another version.

Details

DevElm

| Build BuildConfiguration
| Batch (List Configuration)
| Sequence (List Configuration)
| OneOf (List ( String, Configuration ))

Configuration for the develm program.

= Text String
| Version

Log text messages to the console.

type alias BuildConfiguration =
{ moduleName : String
, outputPath : Maybe String
, format : Format
, mode : Mode
}

Configure DevElm to build an elm program.

type Format
= ImmediatelyInvokedFunctionInvocation
| EcmaScriptModule

Configure what format the program should be built to.

  • EcmaScriptModule allows for native JavaScript-module imports.
  • ImmediatelyInvokedFunctionInvocation exposes the Elm global along with a Node-compatible module.
type Mode
= Develop
| Debug
| Optimize

Configure what mode the program should be built in.

  • Develop is a development-build
  • Debug is a development-build that includes the time-travelling debugger
  • Optimize is a production-build that includes minification
defaultBuild : BuildConfiguration

The default-configuration for building Elm programs

Internals

These definitions are for program-authors who want to consume the configuration for their own programs.

Encode a configuration as JSON.

Deprecated

These definitions are removed in the next major version.

A configuration that does nothing at all.