-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (19 loc) · 694 Bytes
/
Makefile
File metadata and controls
23 lines (19 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.DEFAULT_GOAL := help
.PHONY: help dev check
help: ## Show available commands
@printf "Available commands:\n\n"
@awk 'BEGIN {FS = ":.*##"} /^[a-zA-Z0-9_.-]+:.*##/ {printf " %-16s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
dev: ## Run Wails dev environment
wails dev
check: ## Run Go fmt/vet/lint and frontend CI/lint/format
go fmt ./...
go vet ./...
@if command -v golangci-lint >/dev/null 2>&1; then \
golangci-lint run ./...; \
else \
printf "golangci-lint not found, skipping Go lint.\n"; \
fi
npm --prefix frontend run ci --if-present
npm --prefix frontend run lint --if-present
npm --prefix frontend run format --if-present
npm --prefix frontend run format:check --if-present