Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
.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
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user