-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
80 lines (73 loc) · 1.48 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
-include client/.env
export
# App
app.install:
npm --prefix app install
app.build:
npm --prefix app run build
app.start:
docker compose up -d app
app.start.build:
docker compose up -d app --build
app.stop:
docker compose stop app
app.test:
npm --prefix app test
# Server
server.install:
cd server; poetry install
server.lint:
black server
server.lint.check:
black --check server
server.test:
pytest server
## API
server.api.start:
docker compose up -d api
server.api.start.build:
docker compose up -d api --build
server.api.stop:
docker compose stop api
## Worker
server.worker.start:
docker compose up -d worker
server.worker.start.build:
docker compose up -d worker --build
server.worker.stop:
docker compose stop worker
## Migrations
server.migrations.upgrade:
cd server; alembic upgrade head
# Client
client.install:
pio pkg install -d client
client.build:
pio run -d client -e board
client.upload:
pio run -d client -t upload -e board
client.upload.ota:
pio run -d client -t upload -e board --upload-port grow.local
client.watch:
pio device monitor -b 115200
client.test:
pio test -d client -e test
# SQL
sql.start:
docker compose up -d sql
sql.stop:
docker compose stop sql
# Redis
redis.start:
docker compose up -d redis
redis.stop:
docker compose stop redis
# MQTT
mqtt.start:
docker compose up -d mqtt
mqtt.stop:
docker compose stop mqtt
# Git Hooks
hooks.install:
git config core.hooksPath .githooks
hooks.pre-commit: server.lint.check server.test client.test app.test