A gradle plugin for convenient use of elm.
This plugin requires a working installation of the elm-platform in version 0.18.
Other versions might also work, but are not tested.
Apply the plugin using standard Gradle procedure:
plugins {
id 'org.mohme.gradle.elm-plugin' version '<current version>'
}
This plugin adds a elmMake
task to the build.
It does not make any other task depend on elmMake
, thus you might want to add such a dependency yourself.
Configurable properties of the task:
executable
The name of the executable to use.
Defaults to "elm-make".executionDir
The working directory for the execution of elm-make.
Defaults to ".".sourceDir
The directory in/below which the elm source files are contained.
Defaults to 'src/elm'.mainModule
The name of the main module to give to elm-make. Defaults to 'Main.elm'.buildDir
The director in which we place the output. Defaults to "${project.buildDir.path}/elm"targetModule
The ouput file to produce. Defaults to 'elm.js'confirm
Determines whether 'elm-make' actions will automatically get confirmed, or not.
Defaults totrue
.debug
Determines whether 'elm-make' will run with the the--debug
-flag.
Defaults totrue
.
This plugin is made available under the Apache 2.0 License.