blob: 82921bcf52b9ac9a0b6e41dbbaab536bdb743ed9 (
plain) (
blame)
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
|
version: "3"
tasks:
generate:
desc: "Generate protobuf code"
cmds:
- protoc --go_out=internal/weather/pb --go_opt=paths=source_relative protos/weather.proto
build:
desc: "Build all binaries"
cmds:
- task: generate
- go build -o bin/publisher ./cmd/publisher
- go build -o bin/subscriber ./cmd/subscriber
run-publisher:
desc: "Run publisher with auto-generation"
cmds:
- task: generate
- go run ./cmd/publisher
run-subscriber:
desc: "Run subscriber with auto-generation"
cmds:
- task: generate
- go run ./cmd/subscriber
watch:
desc: "Watch and rebuild on changes"
cmds:
- task: generate
sources:
- "**/*.go"
- "**/*.proto"
generates:
- "internal/weather/pb/*.go"
method: timestamp
|