-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (42 loc) · 1.5 KB
/
Copy pathMakefile
File metadata and controls
51 lines (42 loc) · 1.5 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
PLAYWRIGHT_VERSION := 1.60.0
.PHONY: install
install:
- asdf install
npm install --no-save @playwright/test@$(PLAYWRIGHT_VERSION)
npx playwright install chromium
.PHONY: all
all: format test
.PHONY: format
format:
npx --yes prettier --write . --log-level=silent
.PHONY: test
test: install
ifdef CI
npx playwright test --grep-invert "@snapshot"
else
npx playwright test
endif
snapshots: install
npx playwright test --grep "@snapshot"
.PHONY: dev
dev: install
npx --yes nodemon --ext js,mjs,json,html,css --watch . --exec "clear; make all; printf '\n🚀\n\n'"
.PHONY: run
run:
npx --yes live-server --no-browser --ignorePattern='test-results|tests/snapshots'
.PHONY: icons
icons:
@ set -e; cd images; SVG=grand-rapids-city-logo.svg; BG='#f8e119'; \
rsvg-convert -w 720 -h 720 -b "$$BG" "$$SVG" | magick - -filter Lanczos -resize 180x180 apple-touch-icon.png; \
rsvg-convert -w 768 -h 768 -b "$$BG" "$$SVG" | magick - -filter Lanczos -resize 192x192 icon-192.png; \
rsvg-convert -w 2048 -h 2048 -b "$$BG" "$$SVG" | magick - -filter Lanczos -resize 512x512 icon-512.png; \
rsvg-convert -w 128 -h 128 -b "$$BG" "$$SVG" | magick - -filter Lanczos -resize 32x32 favicon-32.png; \
rsvg-convert -w 64 -h 64 -b "$$BG" "$$SVG" | magick - -filter Lanczos -resize 16x16 favicon-16.png
.PHONY: data
data:
python scripts/fetch_car_parking_arcgis.py
python scripts/fetch_car_parking_osm.py
python scripts/fetch_car_parking_ellis.py
python scripts/fetch_bike_parking.py
python scripts/fetch_lime_parking.py
make format