tldr/pages/common/elm.md
Ruben Lie King 7faabae907 elm: update page, add elm make example (#2683)
* elm: update page
2019-01-07 20:40:29 +05:30

535 B

elm

Compile and run Elm source files.

  • 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}}