krply/Makefile
lakshit verma 7cc863d40b
feat(core): add journal, collector, storage, and materializer
- durable event schema with stream identity and dedup hashing
- SQLite WAL and in-memory journal stores with atomic append+checkpoint
- list-and-watch collector with bookmarks, reconnects, and 410 relists
- state reduction, snapshots, and semantic field diffs
2026-08-06 05:30:51 +05:30

50 lines
1.1 KiB
Makefile

.PHONY: build build-server build-cli web test test-unit test-integration test-e2e lint vet fmt tidy install-bins docs clean
VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
LDFLAGS := -X github.com/krply/krply/internal/version.Version=$(VERSION)
build: build-cli build-server
build-cli:
go build -ldflags '$(LDFLAGS)' -o bin/krply ./cmd/krply
build-server:
go build -ldflags '$(LDFLAGS)' -o bin/krply-server ./cmd/krply-server
web:
cd web && npm install && npm run build
test:
go test ./...
test-unit:
go test ./internal/... ./cmd/... -short
test-integration:
go test ./test/integration/... -tags integration -timeout 20m
test-e2e:
go test ./test/e2e/... -tags e2e -timeout 30m
lint:
go vet ./...
cd web && npm run lint 2>/dev/null || true
vet:
go vet ./...
fmt:
gofmt -w $$(find . -name '*.go' -not -path './vendor/*')
tidy:
go mod tidy
install-bins: build
install -m 0755 bin/krply /usr/local/bin/krply
install -m 0755 bin/krply-server /usr/local/bin/krply-server
docs:
@echo "documentation lives in docs/"
clean:
rm -rf bin web/dist