diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-05 15:02:09 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-05 15:02:09 +0200 |
| commit | b6ca97fe994c46737e0aa5c73e8b3d924ddaecd2 (patch) | |
| tree | 76ed491b85468cb5812bf0d7efafe95fa1cf14f7 /.mise.toml | |
| parent | 71c39ed9f8ce3563130cdfc5099e9d7df60845a9 (diff) | |
refactor: Remove obsolete Strava helpers and add mise tasks
Diffstat (limited to '.mise.toml')
| -rw-r--r-- | .mise.toml | 27 |
1 files changed, 27 insertions, 0 deletions
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 ." |