-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
57 lines (51 loc) · 1.24 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
47
48
49
50
51
52
53
54
55
56
57
bucket-dev := 's3://NEEDADDED'
bucket-live := 's3://NEEDADDED'
develop:
@npm run start
build:
@npm run build
serve:
@npm run serve
deploy:
@aws s3 sync public $(bucket-dev) \
--acl=public-read \
--exclude "*" \
--include "*.html" \
--delete \
--cache-control='max-age=60, must-revalidate'
@aws s3 sync public $(bucket-dev) \
--acl=public-read \
--exclude "*" \
--include "*.js" \
--include "*.js.map" \
--delete \
--cache-control='max-age=no-cache, must-revalidate'
@aws s3 sync public $(bucket-dev) \
--acl=public-read \
--exclude "*.html" \
--exclude "*.js" \
--exclude "*.js.map" \
--delete \
--cache-control='max-age=2592000'
live:
@aws s3 sync $(bucket-dev) $(bucket-live) \
--acl=public-read \
--exclude "*" \
--include "*.html" \
--delete \
--cache-control='max-age=60, must-revalidate'
@aws s3 sync $(bucket-dev) $(bucket-live) \
--acl=public-read \
--exclude "*" \
--include "*.js" \
--include "*.js.map" \
--delete \
--cache-control='max-age=no-cache, must-revalidate'
@aws s3 sync $(bucket-dev) $(bucket-live) \
--acl=public-read \
--exclude "*.html" \
--exclude "*.js" \
--exclude "*.js.map" \
--delete \
--cache-control='max-age=2592000'
.PHONY: develop deploy build live serve