-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (26 loc) · 966 Bytes
/
Makefile
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
all: tidy install docker-build
install: gen
@go install ./
build: gen
@go build -o build/backup ./
remove-doc:
@rm -rf ./doc
run: install remove-doc
@backup serve
gen:
@go install github.com/a-h/templ/cmd/templ@latest
@templ generate
tidy:
@go mod tidy
docker-build:
@docker build -t music-api:latest .
format-tools:
go install mvdan.cc/gofumpt@v0.6.0
gofumpt -l -w .
lint: format-tools
golangci-lint run
format: format-tools
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs gofumpt -w -s
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs misspell -w
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs goimports -w -local github.com/jackalLabs/canine-chain
.PHONY: install format lint format-tools gem tidy remove-doc run