You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add build automation scripts and test infrastructure improvements
Adds PowerShell build script (build.ps1) for Windows with cross-platform Makefile enhancements. Both scripts provide unified commands for dependency installation, testing, linting, formatting, and Docker operations with automatic prerequisite checks.
Makefile improvements:
- Dependency detection for Node.js, npm, and .NET CLI
- New targets: install, test, lint, format, check-deps
- Enhanced error messages for missing dependencies
- Docker
Copy file name to clipboardExpand all lines: Makefile
+109-1Lines changed: 109 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,14 @@
1
1
# 检测是否支持 docker compose
2
2
DOCKER_COMPOSE := $(shell if docker compose version >/dev/null 2>&1; then echo "docker compose"; else echo "docker-compose"; fi)
3
3
4
-
.PHONY: all build build-backend build-frontend build-docs build-arm build-amd build-backend-arm build-backend-amd up down restart dev dev-backend dev-web logs clean help
4
+
# 检测 Node.js 和 npm
5
+
NODE_EXISTS := $(shell if node --version >/dev/null 2>&1; then echo "true"; else echo "false"; fi)
6
+
NPM_EXISTS := $(shell if npm --version >/dev/null 2>&1; then echo "true"; else echo "false"; fi)
7
+
8
+
# 检测 .NET CLI
9
+
DOTNET_EXISTS := $(shell if dotnet --version >/dev/null 2>&1; then echo "true"; else echo "false"; fi)
10
+
11
+
.PHONY: all build build-backend build-frontend build-docs build-arm build-amd build-backend-arm build-backend-amd up down restart dev dev-backend dev-web logs clean help test test-backend test-frontend lint lint-frontend format format-backend install install-frontend install-backend check-deps
0 commit comments