-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitpod.yml
70 lines (58 loc) · 1.79 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
# https://www.gitpod.io/docs/config-gitpod-file
image:
file: .gitpod.Dockerfile
ports:
- port: 3000
name: Web App
description: The main application web server
onOpen: open-browser
tasks:
- name: Restore .env file
command: |
if [ -f .env ]; then
# If this workspace already has a .env, don't override it
# Local changes survive a workspace being opened and closed
# but they will not persist between separate workspaces for the same repo
echo "Found .env in workspace"
else
# There is no .env
if [ ! -n "${ENV}" ]; then
# There is no $ENV from a previous workspace
# Default to the example .env
echo "Setting example .env"
cp .env.example .env
else
# After making changes to .env, run this line to persist it to $ENV
# eval $(gp env -e ENV="$(base64 .env | tr -d '\n')")
#
# Environment variables set this way are shared between all your workspaces for this repo
# The lines below will read $ENV and print a .env file
echo "Restoring .env from Gitpod"
echo "${ENV}" | base64 -d | tee .env > /dev/null
fi
fi
- name: Install dependencies
init: npm install
command: npm run dev
- name: Vercel
init: npm i -g vercel
- name: PlanetScale
command: pscale login
github:
prebuilds:
addBadge: true
addComment: true
vscode:
extensions:
- ms-azuretools.vscode-docker
- esbenp.prettier-vscode
- dbaeumer.vscode-eslint
- Trunk.io
- donjayamanne.git-extension-pack
- afzalsayed96.heroicons
- kavod-io.vscode-jest-test-adapter
- Orta.vscode-jest
- GitHub.copilot
- ZixuanChen.vitest-explorer
- Prisma.prisma
- hbenl.vscode-test-explorer