stash/Makefile

38 lines
607 B
Makefile

ifeq ($(OS),Windows_NT)
SEPARATOR := &&
SET := set
endif
build:
$(SET) CGO_ENABLED=1 $(SEPARATOR) packr2 build -mod=vendor -v
install:
packr2 install
clean:
packr2 clean
# Regenerates GraphQL files
.PHONY: gqlgen
gqlgen:
go run scripts/gqlgen.go
cd ui/v2 && yarn run gqlgen
# Runs gofmt -w on the project's source code, modifying any files that do not match its style.
.PHONY: fmt
fmt:
go fmt ./...
# Runs go vet on the project's source code.
.PHONY: vet
vet:
go vet ./...
.PHONY: lint
lint:
revive -config revive.toml -exclude ./vendor/... ./...
.PHONY: ui
ui:
cd ui/v2 && yarn build