2025-03-14 21:59:59 -06:00
|
|
|
# elm
|
|
|
|
|
|
|
|
|
|
> Compile and run Elm source files.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://guide.elm-lang.org/install/elm.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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`
|
|
|
|
|
|
|
|
|
|
- Install Elm package from <https://package.elm-lang.org>:
|
|
|
|
|
|
|
|
|
|
`elm install {{author}}/{{package}}`
|