4200f90159
Go 控制面(SQLite + REST API)嵌入 Mihomo 数据面,Vue 3 多语言 Web 管理台。 含订阅/节点/规则/出站/监控/日志、OpenAPI、API Key、Gitea Actions CI(runs-on: docker) 与开源文档;镜像发布至 git.rc707blog.top Container Registry。 Co-authored-by: Cursor <cursoragent@cursor.com>
34 lines
643 B
Makefile
34 lines
643 B
Makefile
.PHONY: dev dev-web build build-web run test clean
|
|
|
|
dev:
|
|
@echo "Run backend and frontend in separate terminals:"
|
|
@echo " make run"
|
|
@echo " make dev-web"
|
|
|
|
dev-web:
|
|
cd web && npm run dev
|
|
|
|
build-web:
|
|
cd web && npm run build
|
|
rm -rf internal/api/static/*
|
|
cp -r web/dist/* internal/api/static/
|
|
|
|
build: build-web
|
|
go build -o dist/prism ./cmd/prism
|
|
|
|
docker-build:
|
|
docker build -t prism:latest .
|
|
|
|
docker-push:
|
|
./scripts/docker-build-push-multiarch.sh
|
|
|
|
run:
|
|
go run ./cmd/prism
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
clean:
|
|
rm -rf dist web/dist internal/api/static/*
|
|
@echo '<!DOCTYPE html><html><body>Prism</body></html>' > internal/api/static/index.html
|