-
Notifications
You must be signed in to change notification settings - Fork 14
/
.gitpod.yml
109 lines (103 loc) · 2.63 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
github:
prebuilds:
# enable for the master/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
# 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: true
tasks:
- name: install & run
env:
NODE_OPTIONS: --openssl-legacy-provider
PORT: 8080
before: |
[ -d ../aegis ] || ( cd ../aegis && nvm install --lts )
[ -d ../aegis-host ] || ( cd ../aegis-host && nvm install --lts )
[ -d ../aegis-app ] || ( cd ../aegis-app && nvm install --lts )
init: |
cd ..
git clone https://github.com/module-federation/aegis-app
cd aegis-app
nvm install --lts
nvm use --lts
yarn
yarn build
cd ../aegis
nvm install --lts
nvm use --lts
yarn
yarn build
cd ..
git clone https://github.com/module-federation/aegis-host
cd aegis-host
nvm install --lts
nvm use --lts
yarn
command: |
cd ../aegis
nvm use --lts
yarn link
cd ../aegis-app
nvm use --lts
nohup node repo.js 8000 dist &
nohup node repo.js 8001 cache &
yarn build
cd ../aegis-host
nvm use --lts
yarn link @module-federation/aegis
yarn build
gp sync-done start
node --title aegis src/bootstrap.js | tee public/aegis.log
- name: service mesh
env:
NODE_OPTIONS: --openssl-legacy-provider
PORT: 8888
SWITCH: true
before: |
[ -d ../aegis-host ] || ( cd ../aegis-host && nvm install --lts )
command: |
gp sync-await start
cd ../aegis-host
nvm install --lts
nvm use --lts
node --title webswitch src/bootstrap.js | tee public/webswitch.log
- name: mongodb
command: |
cd ../aegis
./mongo.sh
- name: watch core
command: |
gp sync-await start
cd ../aegis
node watch.mjs
- name: watch app
command: |
gp sync-await start
cd ../aegis-app
node watch.mjs
ports:
- port: 8000
description: local repo
visibility: public
onOpen: ignore
- port: 8080
description: http api
visibility: public
onOpen: open-preview
- port: 8888
description: webswitch
visibility: public
onOpen: open-browser
- port: 27017
description: mongodb
visibility: public
onOpen: ignore
- port: 5353
description: multicast dns
visibility: public
onOpen: ignore