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
Mar 8, 2020
1 parent
525f05b
commit d08cde6
Showing
4 changed files
with
65 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,60 @@ | ||
# 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 | ||
``` | ||
|
||
## VSCode Extensions | ||
|
||
### Elm | ||
|
||
![Demo of the Elm extension](images/ElmExtensionDemo.png) | ||
|
||
This extension adds many features: | ||
|
||
- Peek/Goto definition | ||
- [Intellisense](https://code.visualstudio.com/docs/editor/intellisense)/Code completion | ||
- Hover documentation | ||
- Autoformatting | ||
- Rename symbols | ||
|
||
To add this VSCode extension to your repository please add the following to your [.gitpod.yml](https://www.gitpod.io/docs/config-gitpod-file/) file | ||
|
||
```yaml | ||
vscode: | ||
extensions: | ||
- [email protected]:rb3k4mPelyC4Fqod9UBvvA== | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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" | ||
) | ||
] | ||
), | ||
|