Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
1.3 kB · 50 lines
Makefile
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
SHELL = /bin/bash.SHELLFLAGS = -o pipefail -c
# https://github.com/golang/go/wiki/LoopvarExperimentexport GOEXPERIMENT := loopvar
.PHONY: helphelp: ## Print info about all commands @echo "Commands:" @echo @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[01;32m%-20s\033[0m %s\n", $$1, $$2}'
.PHONY: buildbuild: ## Build all executables go build ./cmd/bskyweb go build ./cmd/embedr
.PHONY: testtest: ## Run all tests go test ./...
.PHONY: coverage-htmlcoverage-html: ## Generate test coverage report and open in browser go test ./... -coverpkg=./... -coverprofile=test-coverage.out go tool cover -html=test-coverage.out
.PHONY: lintlint: ## Verify code style and run static checks go vet ./... test -z $(gofmt -l ./...)
.PHONY: fmtfmt: ## Run syntax re-formatting (modify in place) go fmt ./...
.PHONY: checkcheck: ## Compile everything, checking syntax (does not output binaries) go build ./...
.env: if [ ! -f ".env" ]; then cp example.dev.env .env; fi
.PHONY: run-dev-bskywebrun-dev-bskyweb: .env ## Runs 'bskyweb' for local dev GOLOG_LOG_LEVEL=info go run ./cmd/bskyweb serve
.PHONY: run-dev-embedrrun-dev-embedr: .env ## Runs 'embedr' for local dev GOLOG_LOG_LEVEL=info go run ./cmd/embedr serve