- Updated Makefile to include `--build` flag for `docker-compose.dev.yml` and `--no-cache` for `docker-compose.prod.yml` to ensure fresh builds. - Added new CSS styles for Leaflet tooltips and popups to utilize theme colors, enhancing visual consistency. - Enhanced MapView component with new props for markers and current zoom level, improving marker management and zoom functionality. - Introduced new icons for copy and info actions to improve user interface clarity. - Updated MapBookmarks and MapControls components to support new features and improve user experience with bookmarks and zoom controls. - Refactored MapSearch to display coordinates and improve marker search functionality.
34 lines
981 B
Makefile
34 lines
981 B
Makefile
.PHONY: dev build test test-backend test-frontend lint fmt generate-frontend clean
|
|
|
|
TOOLS_COMPOSE = docker compose -f docker-compose.tools.yml
|
|
|
|
dev:
|
|
docker compose -f docker-compose.dev.yml up --build
|
|
|
|
build:
|
|
docker compose -f docker-compose.prod.yml build --no-cache
|
|
|
|
test: test-backend test-frontend
|
|
|
|
test-backend:
|
|
$(TOOLS_COMPOSE) run --rm backend-tools go test ./...
|
|
|
|
test-frontend:
|
|
$(TOOLS_COMPOSE) run --rm frontend-tools sh -c "npm ci && npm test"
|
|
|
|
lint:
|
|
$(TOOLS_COMPOSE) run --rm backend-tools golangci-lint run
|
|
$(TOOLS_COMPOSE) run --rm frontend-tools sh -c "npm ci && npm run lint"
|
|
|
|
fmt:
|
|
$(TOOLS_COMPOSE) run --rm backend-tools go fmt ./...
|
|
$(TOOLS_COMPOSE) run --rm frontend-tools sh -c "npm ci && npm run format"
|
|
|
|
generate-frontend:
|
|
npm --prefix frontend-nuxt run generate
|
|
rm -rf frontend/*
|
|
cp -a frontend-nuxt/.output/public/. frontend/
|
|
|
|
clean:
|
|
rm -rf frontend-nuxt/.nuxt frontend-nuxt/.output frontend-nuxt/.cache hnh-map
|