refactor: update Dockerfile and TypeScript configuration for frontend

This commit is contained in:
Camille 2026-05-29 23:55:13 +02:00
parent 7a9383e87f
commit b1c1972c6f
5 changed files with 42 additions and 9 deletions

View file

@ -3,14 +3,14 @@ FROM maven:3.9-eclipse-temurin-21-alpine AS builder
WORKDIR /build
# Copy pom.xml first for dependency caching
COPY pom.xml .
# Copy pom.xml first for dependency caching (context = workspace root)
COPY apps/backend/pom.xml .
# Download dependencies (cached layer)
RUN mvn dependency:go-offline -q
# Copy source code
COPY src ./src
COPY apps/backend/src ./src
# Build the application (layered JAR)
RUN mvn package -DskipTests -q

View file

@ -27,7 +27,8 @@
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/apps/frontend"
"outputPath": "dist/apps/frontend",
"tsConfig": "apps/frontend/tsconfig.app.json"
},
"configurations": {
"development": {
@ -43,7 +44,8 @@
"outputs": ["{workspaceRoot}/coverage/apps/frontend"],
"options": {
"passWithNoTests": true,
"reportsDirectory": "../../coverage/apps/frontend"
"reportsDirectory": "../../coverage/apps/frontend",
"tsConfig": "apps/frontend/tsconfig.spec.json"
}
},
"lint": {

View file

@ -0,0 +1,14 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"types": []
},
"include": ["src"],
"exclude": [
"src/**/*.spec.ts",
"src/**/*.spec.tsx",
"src/**/*.test.ts",
"src/**/*.test.tsx",
"src/test-setup.ts"
]
}

View file

@ -16,9 +16,13 @@
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"types": ["vitest/globals"]
"noFallthroughCasesInSwitch": true
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
"files": [],
"include": [],
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.spec.json" },
{ "path": "./tsconfig.node.json" }
]
}

View file

@ -0,0 +1,13 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"types": ["vitest/globals", "@testing-library/jest-dom"]
},
"include": [
"src/**/*.spec.ts",
"src/**/*.spec.tsx",
"src/**/*.test.ts",
"src/**/*.test.tsx",
"src/test-setup.ts"
]
}