-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
120 lines (96 loc) · 4.16 KB
/
Makefile
File metadata and controls
120 lines (96 loc) · 4.16 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
.PHONY: all help \
dev local build start deploy lint \
build-local start-local build-dev start-dev \
mobile mobile-android mobile-ios \
install install-mobile install-scripts \
scripts-cnty scripts-dist scripts-geo scripts-geo-year scripts-excel \
clean
# ── Default target: start everything ──────────────────────────────────────────
all:
$(MAKE) -j2 dev mobile
# ── Help ───────────────────────────────────────────────────────────────────────
help:
@echo ""
@echo "RPDB Frontend — available targets"
@echo ""
@echo " Web (Next.js)"
@echo " make local Dev server (LOCAL deployment)"
@echo " make dev Dev server (DEVELOPMENT deployment)"
@echo " make build Production build"
@echo " make start Serve production build"
@echo " make build-local Build for LOCAL deployment"
@echo " make start-local Serve LOCAL build"
@echo " make build-dev Build for DEVELOPMENT deployment"
@echo " make start-dev Serve DEVELOPMENT build"
@echo " make deploy Deploy to GitHub Pages"
@echo " make lint Run ESLint"
@echo ""
@echo " Mobile (Expo / React Native)"
@echo " make mobile Start Expo dev server"
@echo " make mobile-android Start Expo on Android"
@echo " make mobile-ios Start Expo on iOS"
@echo ""
@echo " Dependencies"
@echo " make install Install web dependencies (npm)"
@echo " make install-mobile Install mobile dependencies (npm)"
@echo " make install-scripts Install Python script dependencies"
@echo ""
@echo " Data scripts (Python)"
@echo " make scripts-excel Convert Excel to JSON"
@echo " make scripts-cnty Generate highway/county averages"
@echo " make scripts-dist Generate highway/district averages"
@echo " make scripts-geo Convert PMIS data to GeoJSON"
@echo " make scripts-geo-year Convert PMIS data to GeoJSON by year"
@echo ""
@echo " Misc"
@echo " make clean Remove Next.js build output"
@echo ""
# ── Web ────────────────────────────────────────────────────────────────────────
local:
npm run local
dev:
npm run dev
build:
npm run build
start:
npm run start
deploy: build
npm run deploy
lint:
npm run lint
build-local:
npm run build-local
start-local:
npm run start-local
build-dev:
npm run build-dev
start-dev:
npm run start-dev
# ── Mobile ─────────────────────────────────────────────────────────────────────
mobile:
cd apps/mobile && npx expo start
mobile-android:
cd apps/mobile && npx expo start --android
mobile-ios:
cd apps/mobile && npx expo start --ios
# ── Dependencies ───────────────────────────────────────────────────────────────
install:
npm install
install-mobile:
cd apps/mobile && npm install
install-scripts:
pip install -r scripts/requirements.txt
# ── Data scripts ───────────────────────────────────────────────────────────────
scripts-excel:
python scripts/convert_excel_to_json.py
scripts-cnty:
python scripts/hw_cnty_avg.py
scripts-dist:
python scripts/hw_dist_avg.py
scripts-geo:
python scripts/pmis_to_geo_line.py
scripts-geo-year:
python scripts/pmis_to_geo_line_by_year.py
# ── Misc ───────────────────────────────────────────────────────────────────────
clean:
rm -rf out .next