Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
68 lines (55 loc) · 1.37 KB
/
Copy pathMakefile
File metadata and controls
68 lines (55 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.PHONY: dev build clean test lint
# Development
dev:
wails dev
# Build for production
build:
wails build
# Clean build artifacts
clean:
rm -rf build/bin/
rm -rf frontend/dist/
rm -rf frontend/node_modules/
# Install dependencies
install:
go mod tidy
cd frontend && npm install
# Run tests
test:
go test ./...
# Lint code
lint:
cd frontend && npm run lint
# Type check
typecheck:
cd frontend && npm run typecheck
# Build frontend only
build-frontend:
cd frontend && npm run build
# Run frontend dev server
dev-frontend:
cd frontend && npm run dev
# Format code
fmt:
go fmt ./...
# Vet code
vet:
go vet ./...
# All checks
check: fmt vet lint typecheck
# Help
help:
@echo "Available commands:"
@echo " make dev - Run in development mode"
@echo " make build - Build for production"
@echo " make clean - Clean build artifacts"
@echo " make install - Install dependencies"
@echo " make test - Run tests"
@echo " make lint - Lint code"
@echo " make typecheck - Type check frontend"
@echo " make build-frontend - Build frontend only"
@echo " make dev-frontend - Run frontend dev server"
@echo " make fmt - Format Go code"
@echo " make vet - Vet Go code"
@echo " make check - Run all checks"
@echo " make help - Show this help"