Initial commit.
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
[tools]
|
||||
go = "latest"
|
||||
node = "latest"
|
||||
|
||||
[tasks.dev-server]
|
||||
description = "Run the Go server (serves API + built frontend on :8080)"
|
||||
run = "go run ./cmd/server"
|
||||
|
||||
[tasks.dev-web]
|
||||
description = "Run the Vite dev server with hot reload (proxies /api to :8080)"
|
||||
dir = "web"
|
||||
run = "npm run dev"
|
||||
|
||||
[tasks.dev]
|
||||
description = "Run backend and frontend dev servers together"
|
||||
depends = ["dev-server", "dev-web"]
|
||||
|
||||
[tasks.install-web]
|
||||
description = "Install frontend dependencies"
|
||||
dir = "web"
|
||||
run = "npm install"
|
||||
|
||||
[tasks.build-web]
|
||||
description = "Build the frontend into web/dist"
|
||||
dir = "web"
|
||||
run = "npm run build"
|
||||
|
||||
[tasks.build]
|
||||
description = "Build everything: frontend + server binary (bin/server)"
|
||||
depends = ["build-web"]
|
||||
run = "go build -o bin/server ./cmd/server"
|
||||
|
||||
[tasks.test]
|
||||
description = "Run all Go tests"
|
||||
run = "go test ./..."
|
||||
|
||||
[tasks.check]
|
||||
description = "Vet Go code and type-check the frontend"
|
||||
run = ["go vet ./...", "cd web && npx tsc -b"]
|
||||
|
||||
[tasks.serve]
|
||||
description = "Build everything and run the production server"
|
||||
depends = ["build"]
|
||||
run = "./bin/server"
|
||||
Reference in New Issue
Block a user