2018-10-03 12:31:36 +03:00
|
|
|
# elm
|
|
|
|
|
2019-01-07 18:10:29 +03:00
|
|
|
> Compile and run Elm source files.
|
2019-06-08 03:04:00 +03:00
|
|
|
> More information: <https://elm-lang.org>.
|
2018-10-03 12:31:36 +03:00
|
|
|
|
2019-01-07 18:10:29 +03:00
|
|
|
- Initialize an Elm project, generates an elm.json file:
|
2018-10-03 12:31:36 +03:00
|
|
|
|
2019-01-07 18:10:29 +03:00
|
|
|
`elm init`
|
2018-10-03 12:31:36 +03:00
|
|
|
|
2019-01-07 18:10:29 +03:00
|
|
|
- Start interactive Elm shell:
|
2018-10-03 12:31:36 +03:00
|
|
|
|
2019-01-07 18:10:29 +03:00
|
|
|
`elm repl`
|
2018-10-03 12:31:36 +03:00
|
|
|
|
2021-01-31 20:05:18 +03:00
|
|
|
- Compile an Elm file, output the result to an `index.html` file:
|
2018-10-03 12:31:36 +03:00
|
|
|
|
2019-01-07 18:10:29 +03:00
|
|
|
`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}}`
|