-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
90 lines (69 loc) · 2.02 KB
/
Taskfile.yml
File metadata and controls
90 lines (69 loc) · 2.02 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
version: "3"
tasks:
signal:
desc: Run signal
cmd: go run cmd/signal/main.go {{.CLI_ARGS}}
p2p:
desc: Run P2P demo client
cmd: go run cmd/p2p/main.go {{.CLI_ARGS}}
p2p-offer:
desc: Run P2P demo client as offer side
cmd: go run cmd/p2p/main.go -role=offer
p2p-answer:
desc: Run P2P demo client as answer side
cmd: go run cmd/p2p/main.go -role=answer
audio:
desc: Run audio demo with Opus codec
cmd: go run cmd/audio/main.go {{.CLI_ARGS}}
audio-offer:
desc: Run audio demo as offer side
cmd: go run cmd/audio/main.go -role=offer
audio-answer:
desc: Run audio demo as answer side
cmd: go run cmd/audio/main.go -role=answer
video:
desc: Run video demo with VP8 codec
cmd: go run cmd/video/main.go {{.CLI_ARGS}}
video-offer:
desc: Run video demo as offer side
cmd: go run cmd/video/main.go -role=offer
video-answer:
desc: Run video demo as answer side
cmd: go run cmd/video/main.go -role=answer
datachannel:
desc: Run datachannel demo
cmd: go run cmd/datachannel/main.go {{.CLI_ARGS}}
generate-audio:
desc: Generate sample WAV file for testing
cmd: go run cmd/generate-audio/main.go {{.CLI_ARGS}}
build:
desc: Build all applications
cmd: go build ./...
test:
desc: Run tests
cmd: go test ./...
fmt:
desc: Format code
cmd: go fmt ./...
vet:
desc: Vet code for issues
cmd: go vet ./...
tidy:
desc: Tidy dependencies
cmd: go mod tidy
clean:
desc: Clean build artifacts
cmd: go clean ./...
dev-server:
desc: Run server with hot reload (requires air)
cmd: air -c .air.toml --build.cmd "go build -o ./tmp/server cmd/server/main.go" --build.bin "./tmp/server"
preconditions:
- sh: which air
msg: "air is not installed. Install with: go install github.com/air-verse/air@latest"
install-tools:
desc: Install development tools
cmds:
- go install github.com/air-verse/air@latest
default:
desc: Show available tasks
cmd: task --list