-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
44 lines (42 loc) · 868 Bytes
/
Taskfile.yaml
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
version: '3'
tasks:
run-backend:
cmds:
- go run -race ./cmd/server
dir: backend/
env:
CALENDAR_URL: "todo"
WEATHER_URL: "https://api.met.no/weatherapi/locationforecast/2.0"
SQLITE_PATH: "storage.db"
build-backend:
cmds:
- go build -a -ldflags '-s -w' -trimpath -installsuffix cgo -o server cmd/server/main.go
env:
GO111MODULE: "on"
CGO_ENABLED: 1
dir: backend/
run-frontend:
cmds:
- npm run dev
dir: frontend/
build-frontend:
cmds:
- npm run build
dir: frontend/
build-esp:
cmds:
- pio run
dir: esp32/
upload-esp:
cmds:
- pio run --target upload
dir: esp32/
monitor-esp:
cmds:
- pio device monitor -e lolin_d32_pro -b 115200
dir: esp32/
help:
desc: Display help
silent: true
cmds:
- task --list