build: update justfile for MCP server project

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
main
Fadhli Azhari 2026-03-12 17:06:34 +08:00
parent cb2dfe9049
commit bcec4bb883
1 changed files with 17 additions and 45 deletions

View File

@ -1,10 +1,6 @@
set shell := ["powershell", "-NoProfile", "-Command"]
# Container runtime: uncomment the line for your preferred tool
# docker := "docker"
docker := "podman"
# KollectAI-ETL Task Runner
# OpenProject MCP Server Task Runner
# Uses Commitizen (https://commitizen-tools.github.io/commitizen/) for
# Conventional Commits enforcement, automated versioning, and changelog generation.
# Configuration: .cz.json (SemVer, conventional_commits schema)
@ -21,6 +17,22 @@ bootstrap:
setup:
uv tool install commitizen; uv tool install pre-commit; pre-commit install
# Install Node.js dependencies.
install:
pnpm install
# Compile TypeScript to dist/.
build:
pnpm build
# Run MCP server directly with tsx (no build needed).
dev:
pnpm dev
# Run compiled MCP server.
start:
pnpm start
# Refresh pre-commit hook versions to latest.
# Run after pulling changes that update .pre-commit-config.yaml.
update:
@ -36,45 +48,5 @@ changelog:
# feat commits → minor bump
# fix commits → patch bump
# BREAKING CHANGE → major bump
# Also updates CHANGELOG.md (update_changelog_on_bump is enabled in .cz.json).
bump:
cz bump
# Start infrastructure services (PostgreSQL, Ollama, MinIO)
infra:
{{docker}} compose up -d postgres ollama minio
# Run backend in dev mode
backend:
cd backend/etl; ./mvnw spring-boot:run "-Dspring-boot.run.profiles=dev"
# Run frontend dev server
frontend:
cd frontend/svelte; pnpm install; pnpm dev
# Start infra + backend + frontend for local development
dev:
just infra; just backend; just frontend
# Build all artifacts
build:
cd backend/etl; ./mvnw package -DskipTests
cd frontend/svelte; pnpm build
# Run all tests
test:
cd backend/etl; ./mvnw test
cd frontend/svelte; pnpm test
# Run linting
lint:
cd backend/etl; ./mvnw checkstyle:check
cd frontend/svelte; pnpm lint
# Start all services via Docker Compose
up:
{{docker}} compose up -d --build
# Stop all services
down:
{{docker}} compose down