Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[roc] Add roc once it has versions #73

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions roc/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM mcr.microsoft.com/devcontainers/base:ubuntu
RUN mkdir -p /opt/roc
RUN curl \
--retry 5 \
--retry-all-errors \
--fail \
--silent \
--show-error \
--location \
https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_$(uname -p)-latest.tar.gz | \
tar -xz --strip-components=1 -C /opt/roc

ENV PATH="/opt/roc:${PATH}"

RUN roc --version

33 changes: 33 additions & 0 deletions roc/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "roc",
"build": {
"dockerfile": "Dockerfile",
"context": "."
},
"customizations": {
"github.com/rradczewski/kata-bootstraps": {
"failingTestVerification": "roc test | tee /dev/stderr | sed 's,\\x1B\\[[0-9;]*m,,g' | grep -q '1 failed and 1 passed'",
"testCommand": "roc test",
"languageLogo": "../roc.svg",
"resources": [
{
"name": "roc Tutorial",
"url": "https://www.roc-lang.org/tutorial"
},
{
"name": "roc Documentation",
"url": "https://www.roc-lang.org/docs"
},
{
"name": "Builtins",
"url": "https://www.roc-lang.org/builtins"
}
]
},
"vscode": {
"extensions": [
"IvanDemchenko.roc-lang-unofficial"
]
}
}
}
7 changes: 7 additions & 0 deletions roc/.gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
image:
file: .devcontainer/Dockerfile
tasks:
- name: Init
vscode:
extensions:
- IvanDemchenko.roc-lang-unofficial
18 changes: 18 additions & 0 deletions roc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

<img width="100px" src="roc.svg" /></a>
# Kata-Bootstrap: roc

| [Open in GitHub Codespace](https://github.com/codespaces/new?hide_repo_select=true&repo=rradczewski%2Fkata-bootstraps&ref=roc) | [Open in GitPod.io](https://gitpod.io/#https://github.com/rradczewski/kata-bootstraps/tree/roc) | [Open locally in VSCode](https://rradczewski.github.io/kata-bootstraps/redirect.html?url=vscode%3A%2F%2Fvscode.git%2Fclone%3Furl%3Dhttps%253A%252F%252Fgithub.com%252Frradczewski%252Fkata-bootstraps.git%26ref%3Droc) |
|---|---|---|

## Test Command

```sh
$ roc test
```

## References

- [roc Tutorial](https://www.roc-lang.org/tutorial)
- [roc Documentation](https://www.roc-lang.org/docs)
- [Builtins](https://www.roc-lang.org/builtins)
11 changes: 11 additions & 0 deletions roc/main.roc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
app [main] {
# TODO: Renovate this
pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.12.0/Lb8EgiejTUzbggO2HVVuPJFkwvvsfW6LojkLR20kTVE.tar.br"
}

import pf.Stdout

main = Stdout.line "Hello, World!"

expect Bool.true == Bool.true
expect Bool.false == Bool.true
13 changes: 13 additions & 0 deletions roc/roc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading