-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (46 loc) · 1.36 KB
/
Makefile
File metadata and controls
55 lines (46 loc) · 1.36 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
.PHONY: help build test lint format run setup-cloudkit clean install
# Default target
help:
@echo "Available targets:"
@echo " install - Install development dependencies via Mint"
@echo " build - Build the project"
@echo " test - Run unit tests"
@echo " lint - Run linters (SwiftLint, SwiftFormat)"
@echo " format - Auto-format code (SwiftFormat)"
@echo " run - Run CLI (requires .env sourced)"
@echo " setup-cloudkit - Deploy CloudKit schema"
@echo " clean - Clean build artifacts"
@echo " help - Show this help message"
# Install dev dependencies
install:
@echo "📦 Installing development tools via Mint..."
@mint bootstrap
# Build the project
build:
@echo "🔨 Building CelestraCloud..."
@swift build
# Run unit tests
test:
@echo "🧪 Running tests..."
@swift test
# Run linters
lint:
@echo "🔍 Running linters..."
@./Scripts/lint.sh
# Auto-format code
format:
@echo "✨ Formatting code..."
@FORMAT_ONLY=1 ./Scripts/lint.sh
# Run CLI (assumes environment sourced)
run:
@echo "🚀 Running celestra-cloud..."
@swift run celestra-cloud
# Deploy CloudKit schema
setup-cloudkit:
@echo "☁️ Deploying CloudKit schema..."
@./Scripts/setup-cloudkit-schema.sh
# Clean build artifacts
clean:
@echo "🧹 Cleaning build artifacts..."
@swift package clean
@rm -rf .build