.PHONY: help install check test build dev clean
help:
@echo "LazyDNS WebUI Makefile"
@echo ""
@echo "Available targets:"
@echo " help - Display this help message"
@echo " install - Install dependencies (npm install + coverage tools)"
@echo " check - Run TypeScript type checking (svelte-check)"
@echo " test - Run unit tests (vitest)"
@echo " coverage - Run unit tests with coverage report"
@echo " build - Build for production"
@echo " dev - Start development server (Vite)"
@echo " clean - Clean build artifacts and dependencies"
@echo " lint - Run linting and type checking"
@echo ""
install:
@echo "Installing dependencies..."
npm install
check:
@echo "Running TypeScript type checking..."
npm run check
test:
@echo "Running unit tests..."
npm test
coverage:
@echo "Running unit tests with coverage..."
npm run test:coverage
build: check
@echo "Building for production..."
npm run build
dev:
@echo "Starting development server..."
npm run dev
clean:
@echo "Cleaning build artifacts..."
rm -rf dist/
rm -rf node_modules/
rm -rf coverage/
@echo "Clean complete"
lint: check
@echo "Linting and type checking complete"
dev-full: install dev
all: clean install lint test build
@echo "Full build pipeline complete!"