-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
46 lines (35 loc) · 1012 Bytes
/
justfile
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
all: tidy format test-color lint gen format-html
tidy:
go mod tidy
test:
go test -race -failfast ./...
test-color:
# go install github.com/haunt98/go-test-color@latest
go-test-color -race -failfast ./...
coverage:
go test -coverprofile=coverage.out ./...
coverage-cli: coverage
go tool cover -func=coverage.out
coverage-html: coverage
go tool cover -html=coverage.out
lint:
golangci-lint run ./...
format:
# go install github.com/haunt98/gofimports/cmd/gofimports@latest
# go install mvdan.cc/gofumpt@latest
gofimports -w --company github.com/make-go-great,github.com/haunt98 .
gofumpt -w -extra .
gen:
go run .
format-html:
# bun upgrade
bunx prettier --write ./templates ./docs
# deno upgrade
deno fmt ./posts
srht:
# https://srht.site/quickstart
# go install git.sr.ht/~xenrox/hut@latest
# hut init
tar -C docs -cvz . > site.tar.gz
hut pages publish -d youngyoshie.srht.site site.tar.gz
rm -rf site.tar.gz