-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (31 loc) · 1.33 KB
/
Copy pathMakefile
File metadata and controls
41 lines (31 loc) · 1.33 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
# Nexus OS Unified Makefile
.PHONY: help install dev test lint build security docker clean
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
install: ## Install all dependencies (backend + frontend)
python3 -m pip install -e .
cd frontend && npm install
dev: ## Run development servers (backend + frontend)
@echo "Starting backend on http://localhost:8000"
@echo "Starting frontend on http://localhost:5173"
(python3 backend/app.py & cd frontend && npm run dev)
test: ## Run all tests (pytest + vitest)
python3 -m pytest
cd frontend && npm run test
lint: ## Run all linters (ruff + eslint)
python3 -m ruff check backend tests
python3 -m ruff format --check backend tests
cd frontend && npm run lint
build: ## Build frontend assets
cd frontend && npm run build
security: ## Run security audits
python3 -m bandit -r backend -c pyproject.toml
python3 -m pip_audit
cd frontend && npm audit --audit-level=high
docker: ## Build backend docker image
docker build -f backend/Dockerfile -t nexus-os-backend .
clean: ## Remove build artifacts
rm -rf frontend/dist
find . -type d -name "__pycache__" -exec rm -rf {} +
find . -type d -name ".pytest_cache" -exec rm -rf {} +
find . -type d -name ".ruff_cache" -exec rm -rf {} +