-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
34 lines (29 loc) · 888 Bytes
/
mise.toml
File metadata and controls
34 lines (29 loc) · 888 Bytes
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
[env]
ETCH_HOME = "{{ config_root }}"
GOCACHE = "{{ config_root }}/.cache/go-build"
GOMODCACHE = "{{ config_root }}/.cache/go-mod"
GOEXPERIMENT = "jsonv2"
_.path = ["{{ config_root }}/bin"]
[tasks.build]
description = "Build etch binaries into ./bin"
run = "mkdir -p ./bin && go build -o ./bin/ ./cmd/..."
[tasks.test]
description = "Run all Go tests"
run = "go test ./..."
[tasks."help:snapshots"]
description = "Update committed help output snapshots"
run = "go test ./internal/etch -update-help-snapshots"
[tasks.site]
description = "Build the site into site/public"
depends = ["build"]
run = [
"go run site/gen-commands.go",
"go tool hugo --source site --cleanDestinationDir --minify",
]
[tasks."site:serve"]
description = "Start the site dev server"
depends = ["build"]
run = [
"go run site/gen-commands.go",
"go tool hugo server --source site --cleanDestinationDir",
]