-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
84 lines (75 loc) · 2.47 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
image: nberlette/gitpod-enhanced
tasks:
- name: "Deno"
env:
DENO_INSTALL: /home/gitpod/.deno
before: >-
cd "$GITPOD_REPO_ROOT" || exit $?
# if deno binary exists in path, ensure that it is not from homebrew
which deno 2>/dev/null | grep -q "linuxbrew" && brew uninstall deno &>/dev/null;
# ensure the deno install dir exists
[ ! -d "$DENO_INSTALL" ] && mkdir -p "$DENO_INSTALL" &>/dev/null;
if ! echo -n "$PATH" | grep -q "$DENO_INSTALL/bin"; then
export PATH="${DENO_INSTALL:+$DENO_INSTALL/bin:}${PATH-}"
fi
if ! which deno &>/dev/null; then
echo 'export PATH="'$DENO_INSTALL'/bin:${PATH-}"' >> ~/.bashrc
# download and install the latest release from deno.land
curl -fsSL https://deno.land/install.sh | sh -
fi
# try to cache or re-cache our dependency files
deno upgrade --unstable 2>/dev/null
git ignore deno.lock &>/dev/null
for __file in ./deps.* ./import{-,_,}map.json{c,}; do
test -f "$__file" \
&& deno cache --reload "$__file" --lock-write deno.lock &>/dev/null
done
exit 0
command: deno task dev 2>/dev/null || deno task >&2
ports:
- name: "Dev (private)"
port: 8000-8888
visibility: private
onOpen: open-preview
github:
prebuilds:
branches: true
pullRequests: true
# custom label to add to a PR
addLabel: "gitpod-prebuild"
# enable prebuilds for pull requests coming from forks
pullRequestsFromForks: true
# adds a check to prevent merging PR's if the prebuild fails
addCheck: "prevent-merge-on-error"
gitConfig:
core.autocrlf: "false"
core.eol: lf
tag.gpgsign: "true"
commit.gpgsign: "true"
core.hooksPath: ".github/hooks"
hooks.silent: "false"
hooks.debug: "false"
hooks.commit.test: "deno test -A --unstable --no-check 2>&1"
hooks.commit.fmt: "deno fmt"
hooks.commit.lint: "false"
vscode:
extensions:
- denoland.vscode-deno
- IuryPiva.run-deno-run
- umbo.vscode-velociraptor
- Thinker.deno-standard-lib-snippets
- editorconfig.editorconfig
- josee9988.minifyall
- quicktype.quicktype
- oliversturm.fix-json
- salbert.comment-ts
- skarab42.ts-to-md
- yzhang.markdown-all-in-one
- bierner.markdown-preview-github-styles
- cschleiden.vscode-github-actions
- vsls-contrib.gistfs
- mrmlnc.vscode-json5
- redhat.vscode-yaml
- gitpod.gitpod-desktop
- gitpod.gitpod-remote-ssh
- sdras.night-owl