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>
96 lines
3.1 KiB
JSON
96 lines
3.1 KiB
JSON
{
|
|
"name": "forge-avatar",
|
|
"version": "1.0.0",
|
|
"description": "Avatar de bureau IA Max, assistant vocal avec modes Coach et Assistant",
|
|
"main": "./out/main/index.js",
|
|
"author": "Vandal William",
|
|
"engines": {
|
|
"node": ">=24.0.0"
|
|
},
|
|
"scripts": {
|
|
"format": "prettier --write .",
|
|
"lint": "eslint --cache .",
|
|
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
|
|
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",
|
|
"typecheck": "npm run typecheck:node && npm run typecheck:web",
|
|
"start": "electron-vite preview",
|
|
"dev": "electron-vite dev",
|
|
"build": "npm run typecheck && electron-vite build",
|
|
"postinstall": "install-electron && electron-builder install-app-deps",
|
|
"build:unpack": "npm run build && electron-builder --dir",
|
|
"build:win": "npm run build && electron-builder --win",
|
|
"build:mac": "electron-vite build && electron-builder --mac",
|
|
"build:linux": "electron-vite build && electron-builder --linux",
|
|
"test": "vitest run",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:watch": "vitest",
|
|
"test:e2e": "npm run build && playwright test",
|
|
"prepare": "husky"
|
|
},
|
|
"overrides": {
|
|
"pptxgenjs": {
|
|
"image-size": "^2.0.4"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.{ts,tsx}": [
|
|
"node node_modules/eslint/bin/eslint.js --fix",
|
|
"node node_modules/prettier/bin/prettier.cjs --write"
|
|
],
|
|
"*.{json,md,yml,yaml}": [
|
|
"node node_modules/prettier/bin/prettier.cjs --write"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@electron-toolkit/preload": "^3.0.2",
|
|
"@electron-toolkit/utils": "^4.0.0",
|
|
"cheerio": "^1.2.0",
|
|
"docx": "^9.13.0",
|
|
"dotenv": "^18.0.8",
|
|
"electron-updater": "^6.8.11",
|
|
"mammoth": "^1.13.0",
|
|
"mermaid": "^12.2.0",
|
|
"pdf-lib": "^1.17.1",
|
|
"pdf-parse": "^1.1.1",
|
|
"pptxgenjs": "^4.0.1",
|
|
"roughjs": "^4.6.6",
|
|
"three": "^0.186.1"
|
|
},
|
|
"devDependencies": {
|
|
"@electron-toolkit/eslint-config-prettier": "^3.0.1",
|
|
"@electron-toolkit/eslint-config-ts": "^4.0.0",
|
|
"@electron-toolkit/tsconfig": "^2.0.0",
|
|
"@playwright/test": "^1.64.1",
|
|
"@testing-library/jest-dom": "^7.0.1",
|
|
"@testing-library/react": "^16.3.3",
|
|
"@testing-library/user-event": "^14.6.8",
|
|
"@types/node": "^24.19.2",
|
|
"@types/pdf-parse": "^1.1.5",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@types/three": "^0.186.0",
|
|
"@vitejs/plugin-react": "^6.1.2",
|
|
"@vitest/coverage-v8": "^5.0.5",
|
|
"electron": "^44.7.2",
|
|
"electron-builder": "^26.15.3",
|
|
"electron-playwright-helpers": "^3.1.2",
|
|
"electron-vite": "^6.0.0",
|
|
"eslint": "^9.39.5",
|
|
"eslint-plugin-import": "^2.32.0",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"eslint-plugin-react-refresh": "^0.5.7",
|
|
"eslint-plugin-security": "^4.2.0",
|
|
"husky": "^9.1.7",
|
|
"jsdom": "^30.1.3",
|
|
"lint-staged": "^17.6.0",
|
|
"playwright": "^1.64.1",
|
|
"prettier": "^3.9.10",
|
|
"react": "^19.3.0",
|
|
"react-dom": "^19.3.0",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^8.3.4",
|
|
"vitest": "^5.0.5"
|
|
}
|
|
}
|