-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
82 lines (56 loc) · 2 KB
/
Makefile
File metadata and controls
82 lines (56 loc) · 2 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Makefile for HTTP Stream MCP Template
.PHONY: help install build dev test lint format clean docker-build docker-dev deploy
# Default target
help: ## Show this help message
@echo "HTTP Stream MCP Template - Available Commands:"
@echo ""
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}'
install: ## Install dependencies
npm install
build: ## Build the project
./scripts/build.sh
dev: ## Start development server with hot reload
./scripts/dev.sh
test: ## Run tests
npm test
test-watch: ## Run tests in watch mode
npm run test:watch
test-coverage: ## Run tests with coverage
npm run test:coverage
lint: ## Run linter
npm run lint
lint-fix: ## Run linter and fix issues
npm run lint:fix
format: ## Format code
npm run format
format-check: ## Check code formatting
npm run format:check
typecheck: ## Run TypeScript type checking
npm run typecheck
clean: ## Clean build artifacts
npm run clean
# Docker commands
docker-build: ## Build production Docker image
./scripts/docker-build.sh
docker-dev: ## Build development Docker image
./scripts/docker-build.sh --dev
docker-run: ## Run production Docker container
docker run -p 3000:3000 http-stream-mcp-template:latest
docker-run-dev: ## Run development Docker container
docker run -p 3000:3000 -v $$(pwd):/app http-stream-mcp-template:dev
# Docker Compose commands
compose-up: ## Start services with Docker Compose
docker-compose up -d
compose-dev: ## Start development service with Docker Compose
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up mcp-server-dev
compose-down: ## Stop Docker Compose services
docker-compose down
compose-logs: ## View Docker Compose logs
docker-compose logs -f
# Deployment
deploy: ## Deploy to production
./scripts/deploy.sh
# Development workflow
setup: install build ## Setup project for development
ci: lint format-check typecheck test ## Run CI checks
all: clean setup ci ## Run complete build and test pipeline