-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
46 lines (38 loc) · 1.03 KB
/
Makefile
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
default: all
.PHONY: clean
clean:
rm -rf examples/asciigram/node_modules \
rm -rf examples/digital-ocean/node_modules \
rm -rf slides/dist/node_modules && \
rm -rf slides/dist/www/* && \
rm -rf slides/source/node_modules
.PHONY: install
install:
. ~/.nvm/nvm.sh use 10 && \
npm -C examples/asciigram install && \
npm -C examples/digital-ocean install && \
npm -C slides/dist install && \
npm -C slides/source install && \
cd ../..
.PHONY: asciigram
asciigram:
pulumi -C examples/asciigram up --yes --skip-preview
.PHONY: digital-ocean
digital-ocean:
pulumi -C examples/digital-ocean up --yes --skip-preview
.PHONY: slides
slides:
npm -C slides/source start
.PHONY: publish
publish:
rm -rf slides/dist/www/**/* && \
npm -C slides/source run build && \
pulumi -C slides/dist up --yes --skip-preview
.PHONY: destroy
destroy:
pulumi -C examples/asciigram destroy -y && \
pulumi -C examples/digital-ocean destroy -y && \
pulumi -C slides/dist destroy -y && \
cd ../..
.PHONY: all
all: clean install asciigram digital-ocean publish