mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 15:59:05 +00:00
Update cheatsheets
This commit is contained in:
33
elm
Normal file
33
elm
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
|
||||
- Install Elm package from <https://package.elm-lang.org>:
|
||||
|
||||
`elm install {{author}}/{{package}}`
|
||||
Reference in New Issue
Block a user