forked from opentypejs/opentype.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
66 lines (56 loc) · 2.03 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
image: nberlette/gitpod-enhanced
tasks:
- name: "Deno Setup"
before: |
# install deno directly from deno.land if necessary
which deno &>/dev/null || curl -fsSL https://deno.land/install.sh | sh 2>&1
# and upgrade it, since we now know deno is installed one way or another.
deno upgrade --canary 2>/dev/null
init: |
# if deno binary exists in path, ensure that it is not from homebrew
command -v deno 2>/dev/null | grep -q "linuxbrew" &&
brew uninstall deno &>/dev/null;
# ensure the correct deno install location is in PATH
export DENO_INSTALL="$HOME/.deno" PATH="$DENO_INSTALL/bin:$PATH"
# export to gitpod environment for this workspace
eval $(gp env -e DENO_INSTALL="$DENO_INSTALL" PATH="$PATH")
# 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
# download and install the latest release from deno.land
curl -fsSL https://deno.land/install.sh | sh -
fi
# ensure deno.lock is ignored
grep -q "deno.lock" "${GITPOD_REPO_ROOT:-.}/.gitignore" ||
echo -e $'\ndeno.lock\n' >> "${GITPOD_REPO_ROOT:-.}/.gitignore";
command: |
deno task 2>/dev/null
vscode:
extensions:
- "denoland.vscode-deno"
- "editorconfig.editorconfig"
- "vsls-contrib.gistfs"
- "redhat.vscode-yaml"
- "antfu.unocss"
- "antfu.browse-lite"
- "bierner.markdown-preview-github-styles"
- "github.copilot"
- "github.copilot-labs"
- "quicktype.quicktype"
- "gitpod.gitpod-desktop"
- "gitpod.gitpod-remote-ssh"
- "yzhang.markdown-all-in-one"
github:
prebuilds:
branches: true
pullRequestsFromForks: true
addLabel: "gitpod-prebuild"
addCheck: "prevent-merge-on-error"
gitConfig:
core.eol: "lf"
core.autocrlf: "false"
commit.gpgsign: "true"
tag.gpgsign: "true"