1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-30 22:17:57 +01:00
tldr/pages/common/elm.md
2019-06-09 01:54:24 -03:00

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