Files
sundynix-pets/pets-be/Makefile
T

23 lines
448 B
Makefile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
.PHONY: admin-install admin-build admin-dev build run tidy
# 后台前端
admin-install:
cd web/admin && npm ci
admin-build:
cd web/admin && npm run build
admin-dev:
cd web/admin && npm run dev
# 构建单二进制(先出后台产物再 go build,embed 打包)
build: admin-build
go build -o bin/pets-be ./cmd/server
# 直接运行后端(使用当前已存在的 internal/admin/dist)
run:
go run ./cmd/server
tidy:
go mod tidy