forked from redwoodjs/redwood
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
55 lines (49 loc) · 2.12 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
# Learn more about this file at https://www.gitpod.io/docs/references/gitpod-yml
checkoutLocation: redwood
workspaceLocation: .
tasks:
- name: Terminal
openMode: split-left
before: |
export RWFW_PATH="/workspace/redwood"
init: |
mkdir /workspace/rw-test-app
command: |
cd /workspace/rw-test-app
echo -e "\n\n\033[94m ======================================================" && echo -e "\n\033[33m ⌛ Please wait until the dev server is running on the right-side terminal. \n "rw-test-app" is being generated & linked with latest framework code. \n\nIf you make further changes to the framework..." && echo -e "1. \033[33mEnsure env vars are set \033[92m'export RWFW_PATH="/workspace/redwood"'\033[33m" && echo -e "2. \033[33mRun \033[92m'yarn rwfw project:sync'\033[33m to watch & sync changes into the test project" && echo -e "\n\033[94m ======================================================\n\n"
- name: "Dev Servers"
openMode: split-right
before: |
export RWFW_PATH="/workspace/redwood"
export REDWOOD_DISABLE_TELEMETRY=1
init: |
cd /workspace/redwood
corepack enable
yarn install
yarn run build:test-project ../rw-test-app --typescript --link --verbose
cd /workspace/rw-test-app && sed -i "s/\(open *= *\).*/\1false/" redwood.toml
command: |
cd /workspace/rw-test-app
yarn rw dev
ports:
- port: 8911
onOpen: ignore
visibility: public
- port: 8910
onOpen: notify
github:
prebuilds:
# enable for the default branch (defaults to true)
master: true
# enable for all branches in this repo (defaults to false)
branches: true
# enable for pull requests coming from this repo (defaults to true)
pullRequests: true
# enable for pull requests coming from forks (defaults to false)
pullRequestsFromForks: true
# add a check to pull requests (defaults to true)
addCheck: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
addComment: false
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
addBadge: false