makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. FRONTEND_DIR = ./web/default
  2. FRONTEND_CLASSIC_DIR = ./web/classic
  3. BACKEND_DIR = .
  4. .PHONY: all build-frontend build-frontend-classic build-all-frontends start-backend dev dev-api dev-web dev-web-classic
  5. all: build-all-frontends start-backend
  6. build-frontend:
  7. @echo "Building default frontend..."
  8. @cd $(FRONTEND_DIR) && bun install && DISABLE_ESLINT_PLUGIN='true' VITE_REACT_APP_VERSION=$(cat ../../VERSION) bun run build
  9. build-frontend-classic:
  10. @echo "Building classic frontend..."
  11. @cd $(FRONTEND_CLASSIC_DIR) && bun install && VITE_REACT_APP_VERSION=$(cat ../../VERSION) bun run build
  12. build-all-frontends: build-frontend build-frontend-classic
  13. start-backend:
  14. @echo "Starting backend dev server..."
  15. @cd $(BACKEND_DIR) && go run main.go &
  16. dev-api:
  17. @echo "Starting backend services (docker)..."
  18. @docker compose -f docker-compose.dev.yml up -d
  19. dev-web:
  20. @echo "Starting frontend dev server..."
  21. @cd $(FRONTEND_DIR) && bun install && bun run dev
  22. dev-web-classic:
  23. @echo "Starting classic frontend dev server..."
  24. @cd $(FRONTEND_CLASSIC_DIR) && bun install && bun run dev
  25. dev: dev-api dev-web