Files
Veyra/Makefile
T
Blizzard bffdb3858b
Checks / verify (push) Failing after 2m37s
feat: 基础框架搭建完毕
2026-10-07 09:27:47 +08:00

28 lines
792 B
Makefile

.PHONY: api build db-create db-migrate admin-create user-create test check admin-dev admin-build
export GOCACHE := $(CURDIR)/.cache/go-build
api: admin-build
go run ./cmd/api -env-file .env
build: admin-build
mkdir -p bin
go build -trimpath -o bin/veyra-api ./cmd/api
go build -trimpath -o bin/veyra-db ./cmd/db
go build -trimpath -o bin/veyra-user ./cmd/user
db-create:
go run ./cmd/db -env-file .env -action create
db-migrate:
go run ./cmd/db -env-file .env -action migrate
admin-create:
go run ./cmd/user -env-file .env -role ADMIN
user-create:
go run ./cmd/user -env-file .env -role USER
test:
go test -race ./...
check:
go vet ./...
npm run build --workspace @veyra/admin
admin-dev:
npm run dev --workspace @veyra/admin
admin-build:
npm run build --workspace @veyra/admin