build: update justfile for MCP server project
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,10 +1,6 @@
|
|||||||
set shell := ["powershell", "-NoProfile", "-Command"]
|
set shell := ["powershell", "-NoProfile", "-Command"]
|
||||||
|
|
||||||
# Container runtime: uncomment the line for your preferred tool
|
# OpenProject MCP Server Task Runner
|
||||||
# docker := "docker"
|
|
||||||
docker := "podman"
|
|
||||||
|
|
||||||
# KollectAI-ETL Task Runner
|
|
||||||
# Uses Commitizen (https://commitizen-tools.github.io/commitizen/) for
|
# Uses Commitizen (https://commitizen-tools.github.io/commitizen/) for
|
||||||
# Conventional Commits enforcement, automated versioning, and changelog generation.
|
# Conventional Commits enforcement, automated versioning, and changelog generation.
|
||||||
# Configuration: .cz.json (SemVer, conventional_commits schema)
|
# Configuration: .cz.json (SemVer, conventional_commits schema)
|
||||||
@@ -21,6 +17,22 @@ bootstrap:
|
|||||||
setup:
|
setup:
|
||||||
uv tool install commitizen; uv tool install pre-commit; pre-commit install
|
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.
|
# Refresh pre-commit hook versions to latest.
|
||||||
# Run after pulling changes that update .pre-commit-config.yaml.
|
# Run after pulling changes that update .pre-commit-config.yaml.
|
||||||
update:
|
update:
|
||||||
@@ -36,45 +48,5 @@ changelog:
|
|||||||
# feat commits → minor bump
|
# feat commits → minor bump
|
||||||
# fix commits → patch bump
|
# fix commits → patch bump
|
||||||
# BREAKING CHANGE → major bump
|
# BREAKING CHANGE → major bump
|
||||||
# Also updates CHANGELOG.md (update_changelog_on_bump is enabled in .cz.json).
|
|
||||||
bump:
|
bump:
|
||||||
cz 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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user