2018-10-03 10:31:36 +01:00
|
|
|
# elm
|
|
|
|
|
2019-01-07 15:10:29 +00:00
|
|
|
> Compile and run Elm source files.
|
2019-06-08 01:04:00 +01:00
|
|
|
> More information: <https://elm-lang.org>.
|
2018-10-03 10:31:36 +01:00
|
|
|
|
2019-01-07 15:10:29 +00:00
|
|
|
- Initialize an Elm project, generates an elm.json file:
|
2018-10-03 10:31:36 +01:00
|
|
|
|
2019-01-07 15:10:29 +00:00
|
|
|
`elm init`
|
2018-10-03 10:31:36 +01:00
|
|
|
|
2019-01-07 15:10:29 +00:00
|
|
|
- Start interactive Elm shell:
|
2018-10-03 10:31:36 +01:00
|
|
|
|
2019-01-07 15:10:29 +00:00
|
|
|
`elm repl`
|
2018-10-03 10:31:36 +01:00
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Compile an Elm file, output the result to an `index.html` file:
|
2018-10-03 10:31:36 +01:00
|
|
|
|
2019-01-07 15:10:29 +00:00
|
|
|
`elm make {{source}}`
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
- Compile an Elm file, output the result to a JavaScript file:
|
2019-01-07 15:10:29 +00:00
|
|
|
|
|
|
|
`elm make {{source}} --output={{destination}}.js`
|
|
|
|
|
|
|
|
- Start local web server that compiles Elm files on page load:
|
|
|
|
|
|
|
|
`elm reactor`
|
|
|
|
|
2023-09-10 14:21:33 +01:00
|
|
|
- Install Elm package from <https://package.elm-lang.org>:
|
2019-01-07 15:10:29 +00:00
|
|
|
|
|
|
|
`elm install {{author}}/{{package}}`
|