Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Commit 5c4d05f

Browse files
fknippsvenefftinge
authored andcommitted
Create deno.md
1 parent cf10ae6 commit 5c4d05f

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

src/docs/languages/deno.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Deno in Gitpod
2+
3+
It's easy to set up Deno in Gitpod.
4+
5+
## Setting up the Dockerfile
6+
7+
Add a Dockerfile to your project as [.gitpod.Dockerfile](https://www.gitpod.io/docs/config-docker/):
8+
9+
```Dockerfile
10+
FROM gitpod/workspace-full
11+
12+
RUN curl -fsSL https://deno.land/x/install/install.sh | sh
13+
RUN /home/gitpod/.deno/bin/deno completions bash > /home/gitpod/.bashrc.d/90-deno && \
14+
echo 'export DENO_INSTALL="/home/gitpod/.deno"' >> /home/gitpod/.bashrc.d/90-deno && \
15+
echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> /home/gitpod/.bashrc.d/90-deno
16+
```
17+
18+
And configure this Dockerfile in your [.gitpod.yml](https://www.gitpod.io/docs/config-gitpod-file/):
19+
20+
```YAML
21+
image:
22+
file: .gitpod.Dockerfile
23+
```
24+
25+
It'll run the latest Deno version and install the Bash completions.
26+
27+
## Example Repositories
28+
29+
Here are a few Deno example projects that are already automated with Gitpod:
30+
31+
<div class="table-container">
32+
33+
Repository | Description | Try it
34+
---------|----------|---------
35+
[fake-log-generator](https://github.com/fknipp/fake-log-generator) | Generator for fake log files as CLI application | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/fknipp/fake-log-generator)
36+
37+
</div>
38+
39+
[Edit this page](https://github.com/gitpod-io/website/edit/master/src/docs/languages/deno.md) to add another examples.
40+
41+
## VSCode Extensions
42+
43+
Here is a useful extensions that you'll likely want to install in your Deno project.
44+
45+
### [Deno](https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno)
46+
47+
To add this extension to your repository, simply add these lines to your [.gitpod.yml](https://www.gitpod.io/docs/config-gitpod-file/) configuration file:
48+
49+
```YAML
50+
vscode:
51+
extensions:
52+
- [email protected]:EQc/TzIQd+H8BcYsPXTo/A==
53+
```

0 commit comments

Comments
 (0)