-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (38 loc) · 1.17 KB
/
Makefile
File metadata and controls
45 lines (38 loc) · 1.17 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
.PHONY: help setup install dev build test clean
help:
@echo "RedSwarm - Available Commands"
@echo "=============================="
@echo "setup - Initial setup (create .env, install deps)"
@echo "install - Install all dependencies"
@echo "dev - Run backend + frontend (see README)"
@echo "build - Build production bundles"
@echo "test - Run all tests"
@echo "clean - Clean build artifacts"
setup:
@echo "🔴 Setting up RedSwarm..."
@chmod +x setup.sh
@./setup.sh
install:
@echo "Installing backend dependencies..."
@cd backend && pip install -r requirements.txt
@echo "Installing frontend dependencies..."
@cd frontend && npm install
dev:
@echo "Starting development servers..."
@npm run dev
build:
@echo "Building production bundles..."
@cd frontend && npm run build
test:
@echo "Running backend tests..."
@cd backend && pytest
@echo "Running frontend tests..."
@cd frontend && npm run test
clean:
@echo "Cleaning build artifacts..."
@rm -rf backend/__pycache__
@rm -rf backend/**/__pycache__
@rm -rf backend/.pytest_cache
@rm -rf frontend/dist
@rm -rf frontend/node_modules/.vite
@echo "Clean complete!"