-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
97 lines (71 loc) · 2.18 KB
/
Makefile
File metadata and controls
97 lines (71 loc) · 2.18 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Makefile for abp-react-tanstack project
.PHONY: help install dev build serve test test-unit test-watch test-coverage test-e2e lint format check type-check generate-api clean kill
# Default target
help: ## Show this help message
@echo "Available commands:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " %-15s %s\n", $$1, $$2}'
# Installation
install: ## Install dependencies
pnpm install
# Development
dev: ## Start development server
pnpm dev
# Build
build: ## Build for production
pnpm build
# Serve
serve: ## Serve production build
pnpm serve
# Testing
test: ## Run all tests (unit + E2E)
pnpm test:all
test-unit: ## Run unit tests
pnpm test
test-watch: ## Run tests in watch mode
pnpm test:watch
test-coverage: ## Run tests with coverage
pnpm test:coverage
test-e2e: ## Run E2E tests
pnpm test:e2e
# Code quality
lint: ## Run linter
pnpm lint
lint-fix: ## Run linter and fix issues
pnpm run lint:fix
format: ## Format code
pnpm format
check: ## Check code quality (lint + format)
pnpm check
check-file-size: ## Check file sizes
pnpm check-file-size
type-check: ## Run TypeScript type checking
pnpm typecheck
# API generation
generate-api: ## Generate API client
pnpm generate-api
# Clean
clean: ## Clean build artifacts
rm -rf dist
rm -rf node_modules
rm -rf .output
rm -rf .tanstack
# Kill processes
kill: ## Kill Vite development server
pkill -f vite || true
# Combined tasks
setup: install ## Install dependencies and setup project
@echo "Project setup complete!"
build-all: clean install generate-api build ## Clean, install, generate API, and build
@echo "Build complete!"
dev-full: generate-api dev ## Generate API and start dev server
@echo "Development server started!"
# Docker (if needed in future)
# docker-build: ## Build Docker image
# docker build -t abp-react-tanstack .
# docker-run: ## Run Docker container
# docker run -p 3000:3000 abp-react-tanstack
# Verify file organization
check-organization: ## Verify file organization follows feature-based structure
@echo "Checking file organization..."
@find src -type f -name "*.ts" -o -name "*.tsx" | head -20
@echo "✅ File organization verified!"