-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitpod.yml
53 lines (44 loc) · 1.48 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
# To learn about this file, please see https://www.gitpod.io/docs/references/gitpod-yml
image: gitpod/workspace-postgres
tasks:
- init: |
# Cleanup terminal
printf "\033[3J\033c\033[3J"
nvm install 20.15.1
nvm use 20.15.1
corepack enable
corepack prepare yarn@stable --activate
# Auto init a redwoodjs project for Gitpod if missing
if test ! -e redwood.toml; then {
# Create
COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack yarn create redwood-app . --overwrite --yes
# Change the default `sqlite` datasource provider to `postgres`
sed -i 's|provider = "sqlite"|provider = "postgres"|' "api/db/schema.prisma"
} else {
COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack yarn install
} fi
command: |
cmd="yarn rw dev"
printf "Executing '%s' ..." "${cmd}"
${cmd}
ports:
- port: 5432
name: PostgreSQL database
onOpen: ignore
- port: 8910
name: RedwoodJS web application
onOpen: notify # because we already have [browser].open = true in redwood.toml
- port: 8911
name: Serverless functions
onOpen: ignore
vscode:
extensions:
- "dbaeumer.vscode-eslint"
- "eamodio.gitlens"
# - "ofhumanbondage.react-proptypes-intellisense" - Not published to Open VSX (yet)
- "mgmcdermott.vscode-language-babel"
- "wix.vscode-import-cost"
- "pflannery.vscode-versionlens"
- "editorconfig.editorconfig"
- "prisma.prisma"
- "graphql.vscode-graphql"