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.
Co-authored-by: Geoffrey Huntley <[email protected]>
- Loading branch information
Showing
4 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Elm in Gitpod | ||
|
||
It's easy to set up Elm in Gitpod. | ||
|
||
## Setting up the Dockerfile | ||
|
||
Add a Dockerfile to your project as [.gitpod.Dockerfile](https://www.gitpod.io/docs/config-docker/): | ||
|
||
```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/ | ||
|
||
# Formats Elm code according to a standard set of rules based on the official Elm Style Guide | ||
RUN npm install -g elm-format | ||
|
||
# Unit and fuzz tests for Elm code. | ||
RUN npm install -g elm-test | ||
|
||
# Analyse your Elm code, identify deficiencies and apply best practices. | ||
RUN npm install -g elm-analyse | ||
``` | ||
|
||
|
||
## Example Repositories | ||
|
||
Here are a few Elm example projects that are already automated with Gitpod: | ||
|
||
<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> | ||
|
||
## 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== | ||
``` |
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