Files
iqudo-top1/Makefile
2026-08-19 21:55:16 +08:00

45 lines
773 B
Makefile

WEB_DIR := web
SDK_DIR := sdk
ARCH ?= $(shell go env GOARCH)
GOOS ?= $(shell go env GOOS)
.PHONY: web-install web-build sdk-install sdk-build build test vet check seed-pet-doctor docker-config docker-up docker-down docker-logs
web-install:
cd $(WEB_DIR) && npm install
web-build:
cd $(WEB_DIR) && npm run build
sdk-install:
cd $(SDK_DIR) && npm install
sdk-build:
cd $(SDK_DIR) && npm run build
build: web-build sdk-build
GOOS=$(GOOS) GOARCH=$(ARCH) go build -o bin/iqudo-top1 .
test:
go test ./...
vet:
go vet ./...
check: test vet
seed-pet-doctor:
go run ./scripts/seed-pet-doctor
docker-config:
docker compose config --quiet
docker-up:
docker compose up --build -d
docker-down:
docker compose down
docker-logs:
docker compose logs -f app nginx