-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (35 loc) · 1.9 KB
/
Copy pathMakefile
File metadata and controls
52 lines (35 loc) · 1.9 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
.PHONY: release release-patch release-minor release-major \
build test fmt clippy docs dev clean help
# ── Release ────────────────────────────────────────────────────────────
release: ## Release the current version (no bump)
@./scripts/release.sh
release-patch: ## Bump patch version and release (0.1.8 → 0.1.9)
@./scripts/release.sh patch
release-minor: ## Bump minor version and release (0.1.8 → 0.2.0)
@./scripts/release.sh minor
release-major: ## Bump major version and release (0.1.8 → 1.0.0)
@./scripts/release.sh major
# ── Development ────────────────────────────────────────────────────────
build: ## Build the project
cargo build
test: ## Run all tests
cargo test
test-all: ## Run all tests with all features
cargo test --all-features
fmt: ## Format all code
cargo fmt --all
fmt-check: ## Check formatting
cargo fmt --all -- --check
clippy: ## Run clippy with all features
cargo clippy --workspace --all-targets --all-features -- -D warnings
docs: ## Build the documentation site
@npm --prefix docs run build
dev: ## Start dev server with hot reload
cargo run -- dev
# ── Utilities ──────────────────────────────────────────────────────────
clean: ## Clean build artifacts
cargo clean
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*##' $(MAKEFILE_LIST) \
| sort \
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-18s\033[0m %s\n", $$1, $$2}'