-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmise.toml
47 lines (39 loc) · 1.39 KB
/
mise.toml
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
[tasks.compress]
# Previously run in: https://github.com/KyleKing/recipes/blob/ba1eae685fd8a75458a80bec0d4377a3b0a24195/recipes/tasks.py#L55
description = "Compress image for performance. Requires a path"
run = "optimize-images -mh 900 --convert-all --force-delete"
[tasks.build]
depends = ["format"]
description = "Build website"
run = "./build.sh"
[tasks.format]
description = "Format (and generate) code"
run = ["templ generate", "templ fmt ./goBuild/", "go fmt ./..."]
sources = ['**/*.go']
[tasks.lint]
depends = ["format"]
description = "Run linters"
run = "testifylint --enable-all ."
sources = ['**/*_test.go']
[tasks.serve]
description = "Serve the built documentation"
run = "go run ./goServe/main.go --port=8000 --directory=./public"
[tasks.test]
depends = ["format", "lint"]
description = "Run test"
# https://stackoverflow.com/a/21725603/3219667
run = "go test -coverprofile=coverage.out -coverpkg=./... ./..."
sources = ['**/*.go']
[tasks.coverage]
description = "View test coverage of most recent test run"
# https://go.dev/blog/cover#heat-maps
run = "go tool cover -html=coverage.out"
[tasks.update]
description = "Update dependencies"
run = ["go get -u ./...", "go mod tidy"]
[tools]
"go:github.com/Antonboom/testifylint" = "1.5.2"
"go:github.com/a-h/templ/cmd/templ" = "0.3.819"
"go:github.com/tdewolff/minify/v2/cmd/minify" = "2.21.2"
"npm:pagefind" = "1.3.0"
"pipx:optimize-images" = "latest"