Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (34 loc) · 1.29 KB
/
Copy pathMakefile
File metadata and controls
49 lines (34 loc) · 1.29 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
.PHONY: help install build build-lib build-ui dev dev-ui test typecheck clean release release-patch release-minor release-major publish-check
help: ## Show this help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " \033[36m%-18s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
install: ## Install dependencies
npm install
build: ## Full build (lib + UI)
npm run build
build-lib: ## Build CLI + library only (tsup)
npm run build:lib
build-ui: ## Build Svelte report template only (vite)
npm run build:ui
dev: ## Watch-build lib (tsup --watch)
npm run dev
dev-ui: ## Vite dev server with HMR for report UI
npm run dev:ui
test: ## Build and run integration tests
npm test
typecheck: ## Run tsc --noEmit
npm run typecheck
clean: ## Remove dist/ and build artifacts
rm -rf dist node_modules/.vite
release-patch: ## Release patch version (0.X.Y -> 0.X.Y+1)
npm run release:patch
release-minor: ## Release minor version (0.X.Y -> 0.X+1.0)
npm run release:minor
release-major: ## Release major version (0.X.Y -> X+1.0.0)
npm run release:major
release: release-patch ## Alias for release-patch
publish-check: build test ## Verify package is ready to publish
@echo ""
@echo "── Package contents ──"
npm pack --dry-run
@echo ""
@echo "Run 'make release-patch|minor|major' to publish"