refactor: move app code into Max Avatar/ subfolder (monorepo prep for backend)

Step 1 of adding a backend proxy server (API keys held server-side instead
of shipped in the installer). Moves everything app-specific into
"Max Avatar/" via git mv (preserves history): src/, tests/, scripts/,
assets/, build/, resources/, package.json/-lock.json, electron-builder.yml,
electron.vite.config.ts, eslint.config.mjs, playwright.config.ts,
vitest.config.mts, sonar-project.properties, tsconfig*.json, Dockerfile,
.editorconfig/.env*/.gitignore/.prettier*.

CLAUDE.md, README.md, docs/, .claude/, .gitea/, .husky/, .vscode/, and the
docker-compose files stay at the repo root, since they'll apply to both the
app and the future backend.

No application code needed changes (all its internal paths are relative to
its own tree). Adjusted what referenced the old root from outside:
- .husky/pre-commit: cd into "Max Avatar" before lint-staged
- .gitea/workflows/*.yml: working-directory + cache-dependency-path +
  artifact paths + SonarQube projectBaseDir
- docker-compose.yml: build context -> ./Max Avatar
- Max Avatar/Dockerfile: node:20-alpine -> node:24-alpine (same node:sqlite
  issue already fixed elsewhere, never applied here before)
- .vscode/launch.json, README.md: updated paths/instructions

Verified from Max Avatar/ after the move: npm ci, typecheck, lint,
test:coverage (473/473, same coverage numbers), build, and dev all work
unchanged.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
william
2026-10-31 12:15:30 +01:00
co-authored by Claude Sonnet 5
parent 60e2fb26af
commit 1c2f002eb3
224 changed files with 135 additions and 18 deletions
+6
View File
@@ -10,6 +10,11 @@ on:
jobs: jobs:
quality: quality:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Le code de l'app vit dans le sous-dossier "Max Avatar" (la racine du depot garde CLAUDE.md,
# README.md, docs/, .gitea/, .husky/, .vscode/, .claude/, docker-compose*.yml).
defaults:
run:
working-directory: Max Avatar
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -22,6 +27,7 @@ jobs:
# la transformation plante avec "Cannot bundle Node.js built-in node:sqlite". # la transformation plante avec "Cannot bundle Node.js built-in node:sqlite".
node-version: '24' node-version: '24'
cache: 'npm' cache: 'npm'
cache-dependency-path: 'Max Avatar/package-lock.json'
- name: Install dependencies - name: Install dependencies
run: npm ci --ignore-scripts run: npm ci --ignore-scripts
+12 -3
View File
@@ -8,6 +8,9 @@ on:
jobs: jobs:
build-windows: build-windows:
runs-on: windows-latest runs-on: windows-latest
defaults:
run:
working-directory: Max Avatar
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
@@ -19,10 +22,13 @@ jobs:
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: max-windows name: max-windows
path: dist/*.exe path: Max Avatar/dist/*.exe
build-mac: build-mac:
runs-on: macos-latest runs-on: macos-latest
defaults:
run:
working-directory: Max Avatar
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
@@ -34,10 +40,13 @@ jobs:
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: max-mac name: max-mac
path: dist/*.dmg path: Max Avatar/dist/*.dmg
build-linux: build-linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults:
run:
working-directory: Max Avatar
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
@@ -49,4 +58,4 @@ jobs:
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: max-linux name: max-linux
path: dist/*.AppImage path: Max Avatar/dist/*.AppImage
+6
View File
@@ -11,6 +11,9 @@ jobs:
sonarqube: sonarqube:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ secrets.SONAR_TOKEN != '' }} if: ${{ secrets.SONAR_TOKEN != '' }}
defaults:
run:
working-directory: Max Avatar
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@@ -21,6 +24,7 @@ jobs:
with: with:
node-version: '24' node-version: '24'
cache: 'npm' cache: 'npm'
cache-dependency-path: 'Max Avatar/package-lock.json'
- name: Install dependencies - name: Install dependencies
run: npm ci --ignore-scripts run: npm ci --ignore-scripts
@@ -30,6 +34,8 @@ jobs:
- name: SonarQube analysis - name: SonarQube analysis
uses: sonarsource/sonarqube-scan-action@master uses: sonarsource/sonarqube-scan-action@master
with:
projectBaseDir: Max Avatar
env: env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
+1 -8
View File
@@ -1,12 +1,5 @@
node_modules node_modules
dist dist
out out
.DS_Store
.eslintcache
*.log*
.env
.env.local
coverage coverage
playwright-report .DS_Store
test-results
.husky/_
+1 -1
View File
@@ -1 +1 @@
npx lint-staged cd "Max Avatar" && npx lint-staged
+4 -4
View File
@@ -5,10 +5,10 @@
"name": "Debug Main Process", "name": "Debug Main Process",
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}/Max Avatar",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite", "runtimeExecutable": "${workspaceRoot}/Max Avatar/node_modules/.bin/electron-vite",
"windows": { "windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd" "runtimeExecutable": "${workspaceRoot}/Max Avatar/node_modules/.bin/electron-vite.cmd"
}, },
"runtimeArgs": ["--sourcemap"], "runtimeArgs": ["--sourcemap"],
"env": { "env": {
@@ -20,7 +20,7 @@
"port": 9222, "port": 9222,
"request": "attach", "request": "attach",
"type": "chrome", "type": "chrome",
"webRoot": "${workspaceFolder}/src/renderer", "webRoot": "${workspaceFolder}/Max Avatar/src/renderer",
"timeout": 60000, "timeout": 60000,
"presentation": { "presentation": {
"hidden": true "hidden": true
+12
View File
@@ -0,0 +1,12 @@
node_modules
dist
out
.DS_Store
.eslintcache
*.log*
.env
.env.local
coverage
playwright-report
test-results
.husky/_
+3 -1
View File
@@ -1,4 +1,6 @@
FROM node:20-alpine AS base # node:sqlite (coachStore.ts, memory/store.ts, meetingStore.ts) exige Node >= 22.5, mais
# Vite/Rolldown ne le reconnaissent comme built-in qu'a partir de Node 24.
FROM node:24-alpine AS base
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm ci --ignore-scripts RUN npm ci --ignore-scripts

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

Some files were not shown because too many files have changed in this diff Show More