Motivations: - Fix 502 en prod via build multi-pages et routes stables - Stabilize IndexedDB (création stores) et faucet obligatoire - Déploiement robuste: port 3004 garanti et logs Modifications: - Vite: inputs multi-pages, alias npm deploy:front - Router/redirects: chemins - Pages setup: URLs corrigées, suppression log faucet disabled - DB: bump version à 5, upgrade crée stores manquants - Script: scripts/deploy_front.sh (kill 3004, clean, build, start bg) - Lint: perf monitor param non utilisé, warnings corrigés Page affectées: - vite.config.ts, src/router.ts - src/pages/* (home, pairing, block-sync, wallet-setup, security-setup) - src/services/* (database-config, performance-monitor) - package.json, scripts/deploy_front.sh
55 lines
1.7 KiB
JSON
Executable File
55 lines
1.7 KiB
JSON
Executable File
{
|
|
"name": "sdk_client",
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"build_wasm": "wasm-pack build --out-dir ../ihm_client_dev3/pkg ../sdk_client --target bundler --dev",
|
|
"start": "vite --host 0.0.0.0",
|
|
"build": "tsc && vite build",
|
|
"deploy:front": "./scripts/deploy_front.sh",
|
|
"prettify": "prettier --config ./.prettierrc --write \"src/**/*{.ts,.html,.css,.js}\"",
|
|
"build:dist": "tsc -p tsconfig.build.json",
|
|
"lint": "eslint src/ --fix",
|
|
"lint:check": "eslint src/",
|
|
"type-check": "tsc --noEmit",
|
|
"quality": "npm run prettify",
|
|
"quality:strict": "npm run type-check && npm run lint:check && npm run prettify",
|
|
"quality:fix": "npm run lint && npm run prettify",
|
|
"analyze": "npm run build && npx bundle-analyzer dist/assets/*.js",
|
|
"test": "jest",
|
|
"test:watch": "jest --watch",
|
|
"test:coverage": "jest --coverage",
|
|
"test:ci": "jest --ci --coverage --watchAll=false"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.38.0",
|
|
"@testing-library/jest-dom": "^6.1.4",
|
|
"@types/jest": "^29.5.8",
|
|
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
"@typescript-eslint/parser": "^8.46.2",
|
|
"eslint": "^9.38.0",
|
|
"jest": "^29.7.0",
|
|
"prettier": "^3.3.3",
|
|
"ts-jest": "^29.1.1",
|
|
"typescript": "^5.3.3",
|
|
"vite": "^5.4.11",
|
|
"vite-plugin-static-copy": "^1.0.6",
|
|
"vite-plugin-top-level-await": "^1.6.0",
|
|
"vite-plugin-wasm": "^3.5.0"
|
|
},
|
|
"dependencies": {
|
|
"axios": "^1.7.8",
|
|
"jose": "^6.0.11",
|
|
"jsonwebtoken": "^9.0.2",
|
|
"pdf-lib": "^1.17.1",
|
|
"sweetalert2": "^11.14.5",
|
|
"vite-plugin-copy": "^0.1.6",
|
|
"vite-plugin-html": "^3.2.2"
|
|
}
|
|
}
|