From b6ca97fe994c46737e0aa5c73e8b3d924ddaecd2 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Wed, 5 Aug 2026 15:02:09 +0200 Subject: refactor: Remove obsolete Strava helpers and add mise tasks --- .mise.toml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .mise.toml (limited to '.mise.toml') diff --git a/.mise.toml b/.mise.toml new file mode 100644 index 0000000..69f2629 --- /dev/null +++ b/.mise.toml @@ -0,0 +1,27 @@ +[tools] +go = "1.25.12" + +[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 ." -- cgit v1.2.3