Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (45 loc) · 1.62 KB
/
Copy pathMakefile
File metadata and controls
53 lines (45 loc) · 1.62 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
# FingerGo Makefile
.PHONY: deps fmt lint test build run dev clean generate license icons test-build
.PHONY: go-deps go-fmt go-lint go-test js-deps js-fmt js-lint js-test
# === Combined Targets ===
deps: go-deps js-deps # Install all dependencies (Go + JS)
fmt: go-fmt js-fmt # Format all code (Go + JS)
lint: go-lint js-lint # Lint all code (Go + JS)
test: go-test js-test # Run all tests (Go + JS)
# === Go Targets ===
go-deps: # Install Go dependencies
go mod tidy
go-fmt: # Format Go code
@gofmt -s -w .
@goimports -w . || true
go-lint: # Lint Go code
@golangci-lint run
go-test: # Run Go tests
@go test ./...
# === JS Targets ===
js-deps: # Install JS dependencies
npm install
js-fmt: # Format JS code
npm run format
js-lint: # Lint JS code
npm run lint
js-test: # Run JS tests
npm test
# === Wails Targets ===
dev: # Start development mode
wails dev
build: # Build production binary
wails build
run: # Run application
wails run
generate: # Generate Wails bindings
wails generate module
# === Utility Targets ===
clean: # Remove build artifacts
rm -rf build/bin dist gui/src/wailsjs node_modules || true
license: # Check license headers
bash scripts/check-licenses.sh
icons: # Generate platform icons from PNG
bash scripts/generate-icons.sh
test-build: # Run full test suite + build verification
bash scripts/test-build.sh