generated from the-pudding/svelte-starter
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
37 lines (30 loc) · 1.42 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
PHONY: github pudding pudding-lite aws-sync aws-sync-lite aws-cp aws-cache
github:
rm -rf docs
cp -r build docs
touch docs/.nojekyll
git add -A
git commit -m "update github pages"
git push
aws-sync:
aws s3 sync build/_app s3://pudding.cool/_app --quiet
aws s3 sync build/about s3://pudding.cool/about --quiet
aws s3 sync build/assets s3://pudding.cool/assets --quiet
aws s3 sync build/author s3://pudding.cool/author --quiet
aws s3 sync build/common s3://pudding.cool/common --quiet
aws s3 sync build/pitch s3://pudding.cool/pitch --quiet
aws s3 sync build/privacy s3://pudding.cool/privacy --quiet
aws s3 sync build/resources s3://pudding.cool/resources --quiet
aws-sync-lite:
aws s3 sync build/_app s3://pudding.cool/_app --quiet
aws s3 sync build/about s3://pudding.cool/about --quiet
aws s3 sync build/author s3://pudding.cool/author --quiet
aws s3 sync build/pitch s3://pudding.cool/pitch --quiet
aws s3 sync build/privacy s3://pudding.cool/privacy --quiet
aws s3 sync build/resources s3://pudding.cool/resources --quiet
aws-cp:
aws s3 cp build/. s3://pudding.cool --recursive --exclude "*" --include "*" --exclude "*/*" --exclude ".DS_Store" --quiet
aws-cache:
aws cloudfront create-invalidation --distribution-id E13X38CRR4E04D --paths "/index.html" "/_app*" "/about*" "/assets*" "/author*" "/common*" "/pitch*" "/privacy*" "/resources*"
pudding: aws-sync aws-cp aws-cache
pudding-lite: aws-sync-lite aws-cp aws-cache