tldr/pages/common/elm.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

581 B

elm

Compile and run Elm source files. More information: https://elm-lang.org.

  • Initialize an Elm project, generates an elm.json file:

elm init

  • Start interactive Elm shell:

elm repl

  • Compile an Elm file, output the result to an index.html file:

elm make {{source}}

  • Compile an Elm file, output the result to a JavaScript file:

elm make {{source}} --output={{destination}}.js

  • Start local web server that compiles Elm files on page load:

elm reactor

elm install {{author}}/{{package}}