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 WORKDIR /build
# Copy pom.xml first for dependency caching # Copy pom.xml first for dependency caching (context = workspace root)
COPY pom.xml . COPY apps/backend/pom.xml .
# Download dependencies (cached layer) # Download dependencies (cached layer)
RUN mvn dependency:go-offline -q RUN mvn dependency:go-offline -q
# Copy source code # Copy source code
COPY src ./src COPY apps/backend/src ./src
# Build the application (layered JAR) # Build the application (layered JAR)
RUN mvn package -DskipTests -q RUN mvn package -DskipTests -q

View file

@ -27,7 +27,8 @@
"outputs": ["{options.outputPath}"], "outputs": ["{options.outputPath}"],
"defaultConfiguration": "production", "defaultConfiguration": "production",
"options": { "options": {
"outputPath": "dist/apps/frontend" "outputPath": "dist/apps/frontend",
"tsConfig": "apps/frontend/tsconfig.app.json"
}, },
"configurations": { "configurations": {
"development": { "development": {
@ -43,7 +44,8 @@
"outputs": ["{workspaceRoot}/coverage/apps/frontend"], "outputs": ["{workspaceRoot}/coverage/apps/frontend"],
"options": { "options": {
"passWithNoTests": true, "passWithNoTests": true,
"reportsDirectory": "../../coverage/apps/frontend" "reportsDirectory": "../../coverage/apps/frontend",
"tsConfig": "apps/frontend/tsconfig.spec.json"
} }
}, },
"lint": { "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, "strict": true,
"noUnusedLocals": true, "noUnusedLocals": true,
"noUnusedParameters": true, "noUnusedParameters": true,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true
"types": ["vitest/globals"]
}, },
"include": ["src"], "files": [],
"references": [{ "path": "./tsconfig.node.json" }] "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"
]
}