bold-brew/Makefile
Vito f514bc3a30
Some checks are pending
Quality / golangci-lint (push) Waiting to run
Quality / Build (push) Waiting to run
feat: io service refactoring (#18)
* refactored io legend and handler

* implmented dedicated IOService

* refactored and fixed io service

* fixed quality issues

* fix general and copilot issues
2025-06-25 17:26:35 +02:00

52 lines
No EOL
1,014 B
Makefile

##############################
# VARIABLES
##############################
ifneq (,$(wildcard ./.env))
include .env
export
endif
%:@
##############################
# RELEASE
##############################
.PHONY: release-snapshot
release-snapshot:
goreleaser release --snapshot --clean
.PHONY: build-snapshot
build-snapshot:
goreleaser build --snapshot --clean
##############################
# BUILD
##############################
.PHONY: build
build:
@docker run --rm -v $(PWD):/app -w /app golang:$(BUILD_GOVERSION) \
env GOOS=$(BUILD_GOOS) GOARCH=$(BUILD_GOARCH) go build -o $(APP_NAME) ./cmd/$(APP_NAME)
.PHONY: run
run: build
./$(APP_NAME)
##############################
# QUALITY
##############################
.PHONY: quality
quality:
@golangci-lint run
##############################
# WEBSITE
##############################
.PHONY: build-site
build-site:
@node build.js
.PHONY: serve-site
serve-site:
@npx http-server docs -p 3000
.PHONY: dev-site
dev-site: build-site serve-site