-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
29 lines (28 loc) · 1.13 KB
/
.travis.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
# THIS IS NOT HOW YOU SHOULD DO DEPLOYMENTS FOR YOUR ORGANIZATION
#
# First off, the sed stuff for modifying import maps is quite hacky and shouldn't
# be what you rely on.
#
# Secondly, each vue app should be in a separate repo and deployed separately, as
# explained in the README.md.
language: node_js
node_js:
- "node"
script:
- cd navbar && npm ci && npm run build && rm dist/index.html
- cd ../app1 && npm ci && npm run build && rm dist/index.html
- cd ../app2 && npm ci && npm run build && rm dist/index.html
- cd ..
- mkdir -p static/navbar static/app1 static/app2 && cp -a navbar/dist/* static/navbar && cp -a app1/dist/* static/app1 && cp -a app2/dist/* static/app2
- cp root-html-file/index.html static
- echo "Files that will be deployed"
- find static
- sed -i 's/http:\/\/localhost:8080/\/navbar\/js/g' static/index.html
- sed -i 's/http:\/\/localhost:8081/\/app1\/js/g' static/index.html
- sed -i 's/http:\/\/localhost:8082/\/app2\/js/g' static/index.html
- cp static/index.html static/200.html
deploy:
provider: surge
project: ./static/
domain: coexisting-vue-microfrontends.surge.sh
skip_cleanup: true