blob: 8ce342848858e50f746319991731cb25aace8283 (
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
|
[tools]
go = "1.25.12"
watchexec = "latest"
[tasks.generate]
description = "Generate templ Go files"
run = "go run github.com/a-h/templ/cmd/templ@v0.2.747 generate"
[tasks.format]
description = "Format Go sources"
run = "go fmt ./..."
[tasks.check]
description = "Run generation, vet, and tests"
depends = ["generate", "format"]
run = "go vet ./... && go test ./..."
[tasks.build]
description = "Build the application"
run = "go build -o biking_home ."
[tasks.migrate]
description = "Apply SQLite migrations"
run = "DATABASE_URL=sqlite:biking_home.db go run github.com/amacneil/dbmate up"
[tasks.dev]
description = "Run the web server"
run = "go run ."
[tasks.dev-watch]
description = "Regenerate templates and run the web server"
run = ["mise run generate", "go run ."]
|