Flags for the develm
program.
Batch
performs tasks unordered.Sequence
performs tasks sequentially.OneOf
performs tasks optionally - OneOf [("build", Build defaultBuild)]
is performed with develm build
.Log text to the console.
{ moduleName : String
, outputPath : Maybe String
, format : Format
, mode : Mode
}
Flag DevElm to build an elm program.
Flag 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.Flag 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 : BuildFlags
The default-flags for building Elm programs. It makes an unoptimized build of a module named Main
into build/main.js
{ moduleName : String
, hostname : String
, port_ : Basics.Int
, mode : Mode
, outputPath : String
, documentPath : Maybe String
, contentTypes : Dict String String
, headers : Dict String String
}
Flag DevElm to serve an elm program over HTTP.
defaultServe : ServeFlags
The default-flags for serving Elm programs. It assumes no HTML-document is present.
{ seed : Maybe Basics.Int
, fuzz : Basics.Int
, moduleName : String
, testName : String
}
Flag DevElm to test Elm functions.
defaultTest : TestFlags
The default-flags for testing Elm functions.
{ moduleName : String
, benchmarkName : String
}
Flag DevElm to benchmark Elm functions.
defaultBenchmark : BenchmarkFlags
The default-flags for benchmarking Elm functions.
These definitions are for program-authors who want to consume the flags for their own programs.
encodeFlags : Flags -> Json.Encode.Value
Encode flags as JSON.