mirror of
https://github.com/6543/go-hexcolor
synced 2024-12-18 15:54:17 +00:00
add Makefile & update README
This commit is contained in:
parent
e2d3f41734
commit
37a28e401f
26
Makefile
Normal file
26
Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
.PHONY: clean
|
||||
clean:
|
||||
go clean -i ./...
|
||||
|
||||
.PHONY: fmt
|
||||
fmt:
|
||||
go fmt *.go
|
||||
|
||||
.PHONY: vet
|
||||
vet:
|
||||
go vet github.com/6543/go-hexcolor
|
||||
|
||||
.PHONY: misspell
|
||||
misspell:
|
||||
@hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||
GO111MODULE=off $(GO) get -u github.com/client9/misspell/cmd/misspell; \
|
||||
fi
|
||||
misspell -w *
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
go test
|
||||
|
||||
.PHONY: vendor
|
||||
vendor:
|
||||
GO111MODULE=on; go mod tidy && go mod vendor
|
Loading…
Reference in New Issue
Block a user