-
Notifications
You must be signed in to change notification settings - Fork 153
/
.travis.yml
27 lines (27 loc) · 1.07 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
# 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 angular 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:single-spa
- cd ../app1 && npm ci && npm run build:single-spa
- cd ../app2 && npm ci && npm run build:single-spa
- cd .. && mkdir static && cp -a navbar/dist app1/dist app2/dist static
- cp root-html-file/index.html static
- sed -i 's/http:\/\/localhost:4201\/main/\/dist\/app1\/main/g' static/index.html
- sed -i 's/http:\/\/localhost:4202\/main/\/dist\/app2\/main/g' static/index.html
- sed -i 's/http:\/\/localhost:4300\/main/\/dist\/navbar\/main/g' static/index.html
- cp static/index.html static/200.html
- echo "The static directory uploaded to surge:"
- find static
deploy:
provider: surge
project: ./static/
domain: coexisting-angular-microfrontends.surge.sh
skip_cleanup: true