-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.yml
48 lines (44 loc) · 1.41 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
image: nberlette/gitpod-enhanced:latest
tasks:
- # WARNING: remove this if you share your workspaces!
before: |
cd "$GITPOD_REPO_ROOT" || exit $?;
[ -n "$DOTENV_VAULT" ] && [ ! -e .env.vault ] &&
echo "DOTENV_VAULT=$DOTENV_VAULT" > .env.vault;
[ -n "$DOTENV_ME" ] && [ ! -e .env.me ] &&
echo "DOTENV_ME=$DOTENV_ME" > .env.me;
if [ -e .env.me ] && [ -e .env.vault ] && [ ! -e .env ]; then
which dotenv-vault &>/dev/null &&
dotenv-vault pull || npx -y dotenv-vault@latest pull;
# expose the .env variables to current environment
[ -e .env ] && { set -a; source .env; set +a; }
fi
# make sure we have deno installed
init: |
export DENO_INSTALL="$HOME/.deno PATH="$DENO_INSTALL/bin:$PATH";
which deno &>/dev/null || \
brew install deno --quiet --overwrite &>/dev/null
command: deno task dev 2>&1 || deno task
ports:
- name: "Develop"
port: 8000
visibility: private
onOpen: notify
github:
prebuilds:
branches: true
pullRequestsFromForks: true
addLabel: "gitpod-ready"
addCheck: "prevent-merge-on-error"
vscode:
extensions:
- github.copilot-nightly
- GitHub.copilot-labs
- denoland.vscode-deno
- vsls-contrib.gistfs
- github.vscode-codeql
- cschleiden.vscode-github-actions
- editorconfig.editorconfig
- jock.svg
- antfu.iconify
- redhat.vscode-yaml