-
Notifications
You must be signed in to change notification settings - Fork 112
/
Makefile
37 lines (27 loc) · 1.01 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
export CLADES_SVG_SRC="https://raw.githubusercontent.com/nextstrain/ncov-clades-schema/master/clades.svg"
export CLADES_SVG_DST="web/src/assets/images/clades.svg"
# Umbrella target for updating all data for web app
# getting OWID data is first, then mut-counts, because has long output (case counts) & may hide other warnings/errors
web-data: get_owid_data mutation-counts web-json case-counts stills update-clades-svg
get_owid_data:
python3 scripts/get_owid_data.py
case-counts:
python3 scripts/include_case_counts.py
mutation-counts:
python3 scripts/mutation_counts.py
# Update JSON files for web app
web-json:
python3 scripts/convert_to_web_app_json.py
# Update jpeg images for web app
stills:
cd web && yarn stills
# Download fresh clades.svg
update-clades-svg:
@echo "Downloading clade schema from '${CLADES_SVG_SRC}' to '${CLADES_SVG_DST}'"
curl -fsSL ${CLADES_SVG_SRC} -o ${CLADES_SVG_DST}
# Run web app in development mode
dev:
cd web && yarn dev
# Run web app in production mode
prod:
cd web && yarn prod:watch