This repository has been archived by the owner on Apr 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Sean Hellum
committed
Feb 28, 2020
1 parent
525f05b
commit 5c6a4fa
Showing
3 changed files
with
43 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Elm in Gitpod | ||
|
||
## Examples | ||
|
||
<div class="table-container"> | ||
|
||
| Repository | Description | Try It | | ||
|------------|--------------|--------| | ||
|[elm-spa-example](https://github.com/svenefftinge/elm-spa-example) | A Single Page Application written in Elm | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/svenefftinge/elm-spa-example) | ||
|
||
</div> | ||
|
||
## Installing Elm | ||
|
||
To install Elm please add the following to your [`.gitpod.Dockerfile`](https://www.gitpod.io/docs/config-gitpod-file/) | ||
|
||
```Dockerfile | ||
# Install Elm | ||
RUN curl -L -o elm.gz https://github.com/elm/compiler/releases/download/0.19.1/binary-for-linux-64-bit.gz \ | ||
&& gunzip elm.gz \ | ||
&& chmod +x elm \ | ||
&& sudo mv elm /usr/local/bin/ | ||
``` | ||
|
||
## Formatting Elm Code | ||
|
||
To auto-format Elm code add the following to your [`.gitpod.Dockerfile`](https://www.gitpod.io/docs/config-gitpod-file/) | ||
|
||
```Dockerfile | ||
RUN npm install -g elm-format | ||
``` | ||
|
||
## Testing Elm Code | ||
|
||
To test your Elm code please add the following to your [`.gitpod.Dockerfile`](https://www.gitpod.io/docs/config-gitpod-file/) | ||
```Dockerfile | ||
RUN npm install -g elm-test | ||
``` |
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
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 |
---|---|---|
|
@@ -135,6 +135,10 @@ export const MENU: MenuEntry[] = [ | |
M( | ||
"R", | ||
"r-in-gitpod" | ||
), | ||
M( | ||
"Elm", | ||
"elm-in-gitpod" | ||
) | ||
] | ||
), | ||
|