-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,52 @@ | ||
# write-elm | ||
|
||
use fp framework | ||
|
||
## install guide | ||
|
||
[link](https://guide.elm-lang.org/install/elm.html) | ||
|
||
## elm init | ||
|
||
You can start an Elm project by running: | ||
|
||
```shell | ||
$ elm init | ||
``` | ||
|
||
## elm reactor | ||
|
||
```shell | ||
$ elm reactor | ||
``` | ||
|
||
## elm make | ||
|
||
```shell | ||
# Create an index.html file that you can open in your browser. | ||
elm make src/Main.elm | ||
|
||
# Create an optimized JS file to embed in a custom HTML document. | ||
elm make src/Main.elm --optimize --output=elm.js | ||
``` | ||
|
||
## elm install | ||
|
||
```shell | ||
$ elm install elm/http | ||
$ elm install elm/json | ||
``` | ||
|
||
## elm format | ||
|
||
```shell | ||
$ npm install elm-format -g | ||
``` | ||
|
||
**from a Source Editor** | ||
|
||
[ vscode plugins elm-format ](https://marketplace.visualstudio.com/items?itemName=abadi199.elm-format#:~:text=VSCode%20Elm%20Format,you%20can%20use%20this%20extension.) | ||
|
||
## Tips | ||
|
||
run `elm --help` |