mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
add "just clean"
This commit is contained in:
parent
baf4e7e326
commit
b49bd86cdf
1 changed files with 4 additions and 0 deletions
4
Justfile
4
Justfile
|
@ -21,6 +21,10 @@ lint: tool-golangci tool-gofumpt
|
||||||
fmt: tool-gofumpt
|
fmt: tool-gofumpt
|
||||||
gofumpt -w --extra .
|
gofumpt -w --extra .
|
||||||
|
|
||||||
|
clean:
|
||||||
|
go clean ./...
|
||||||
|
rm -rf build/
|
||||||
|
|
||||||
tool-golangci:
|
tool-golangci:
|
||||||
@hash golangci-lint> /dev/null 2>&1; if [ $? -ne 0 ]; then \
|
@hash golangci-lint> /dev/null 2>&1; if [ $? -ne 0 ]; then \
|
||||||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest; \
|
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest; \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue