41 lines
543 B
Markdown
41 lines
543 B
Markdown
Part 10
|
|
=======
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
elm-package install
|
|
```
|
|
|
|
(Answer `y` when prompted.)
|
|
|
|
|
|
## Building
|
|
|
|
```bash
|
|
elm-live Main.elm --open --pushstate --output=elm.js
|
|
```
|
|
|
|
## Running Tests
|
|
|
|
Do either (or both!) of the following:
|
|
|
|
#### Running tests on the command line
|
|
|
|
```bash
|
|
elm-test
|
|
```
|
|
|
|
#### Running tests in a browser
|
|
|
|
```bash
|
|
cd tests
|
|
elm-reactor
|
|
```
|
|
|
|
Then visit [localhost:8000](http://localhost:8000) and choose `HtmlRunner.elm`.
|
|
|
|
## References
|
|
|
|
* [Html.map](http://package.elm-lang.org/packages/elm-lang/html/1.1.0/Html-App#map)
|