-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
114 lines (114 loc) · 6.68 KB
/
Copy pathpackage.json
File metadata and controls
114 lines (114 loc) · 6.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"name": "vision",
"private": true,
"version": "1.0.2",
"description": "Financial transaction management application",
"license": "AGPL-3.0-only",
"workspaces": [
"apps/frontend",
"apps/node-backend",
"packages/*"
],
"scripts": {
"install:all": "bun install",
"prepare": "node scripts/setup-git-hooks.js && sh -c 'if [ -n \"$CI\" ]; then echo \"[prepare] CI -- skipping packaging/electron install (workflows install it explicitly).\"; elif [ ! -d packaging/electron ]; then echo \"[prepare] no packaging/electron directory -- skipping (container build context or partial checkout).\"; elif command -v bun >/dev/null 2>&1; then echo \"[prepare] installing packaging/electron deps (needed by the backend backup tests)...\"; bun install --frozen-lockfile --cwd packaging/electron; else echo \"[prepare] bun not found -- skipping. Backend backup tests will fail until you run: bun install --cwd packaging/electron\"; fi'",
"hooks:setup": "node scripts/setup-git-hooks.js",
"install:electron": "bun install --frozen-lockfile --cwd packaging/electron",
"dev": "node packaging/electron/scripts/native-development.js",
"build": "bun run --filter 'vision-frontend' build",
"generate-locales": "node scripts/generate-locales.js",
"sanitize-locales": "node scripts/generate-locales.js --sanitize-only",
"sync-nl": "node scripts/sync-nl-with-en.js",
"generate-locales-if-not-ci": "sh -c 'if [ -z \"$CI\" ]; then node scripts/generate-locales.js; else echo \"Skipping locales generation in CI\"; fi'",
"validate-locales": "node scripts/validate-locales.js",
"dist": "npm run build && cd packaging/electron && npm run dist",
"build:dev": "bun run --filter 'vision-frontend' build:dev",
"preview": "bun run --filter 'vision-frontend' preview",
"lint": "bun run --filter 'vision-frontend' lint",
"lint:backend": "bun run --filter 'financial-transaction-manager-node' lint",
"typecheck": "bun run --filter 'vision-frontend' typecheck",
"backend": "bun run --filter 'financial-transaction-manager-node' start",
"test": "bun run --filter 'financial-transaction-manager-node' test",
"test:frontend": "bun run --filter 'vision-frontend' test",
"test:electron": "node --test packaging/electron/*.test.js packaging/electron/backup/*.test.js packaging/electron/runtime/*.test.js packaging/electron/scripts/*.test.js",
"test:scripts": "node --test scripts/tests/*.test.js",
"test:all": "concurrently --names \"backend,frontend\" -c \"blue,green\" \"bun run --filter 'financial-transaction-manager-node' test\" \"bun run --filter 'vision-frontend' test\"",
"test:coverage": "bun run --filter 'vision-frontend' test:coverage",
"test:e2e": "bun run --filter 'vision-frontend' test:e2e",
"test:e2e:visual": "bun run --filter 'vision-frontend' test:e2e:visual",
"test:watch": "bun run --filter 'financial-transaction-manager-node' test:watch",
"test:db": "scripts/with-test-db.sh",
"db:migrate": "bun run apps/node-backend/scripts/db-migrate.js",
"db:upgrade": "bun run apps/node-backend/scripts/db-migrate.js upgrade",
"db:downgrade": "bun run apps/node-backend/scripts/db-migrate.js downgrade",
"db:current": "node apps/node-backend/scripts/alembic-command.js current",
"db:history": "node apps/node-backend/scripts/alembic-command.js history",
"db:stamp": "bun run apps/node-backend/scripts/db-migrate.js stamp",
"db:revision": "node apps/node-backend/scripts/alembic-command.js revision --autogenerate -m",
"db:index-stats": "bun run apps/node-backend/scripts/index-stats.js",
"db:precision-drift": "bun run apps/node-backend/scripts/check-precision-drift.js",
"db:check-destructive": "python3 scripts/check-destructive-migrations.py",
"db:check-heads": "python3 scripts/check-alembic-heads.py",
"db:check": "bun run db:check-heads && VISION_TEST_DB_TASK=migration-fidelity scripts/with-test-db.sh",
"quotes:densify": "bun run apps/node-backend/scripts/densify-asset-history.js",
"calibrate:category-outliers": "bun scripts/category-outlier-calibration.js",
"electron:dev": "npm run generate-locales-if-not-ci && VISION_RUNTIME_MODE=native VISION_DEVELOPMENT_PROFILE=true packaging/electron/node_modules/.bin/electron packaging/electron/main.js",
"electron:prod": "npm run generate-locales-if-not-ci && packaging/electron/node_modules/.bin/electron packaging/electron/main.js",
"native:prepare": "node packaging/electron/scripts/prepare-development-runtime.js",
"native:smoke": "node packaging/electron/scripts/native-smoke.js",
"native:db-smoke": "node packaging/electron/scripts/native-db-smoke.js",
"native:isolated-smoke": "node packaging/electron/scripts/native-isolated-smoke.js",
"demo:reset-native": "node packaging/electron/scripts/native-demo-cli.js reset --execute",
"update": "bun update",
"version:bump": "node scripts/version-bump.js",
"generate:types": "openapi-typescript openapi.yaml -o apps/frontend/src/types/generated.ts",
"check-endpoint-matrix": "node scripts/check-endpoint-matrix.js",
"check-legacy-inventory": "node scripts/check-legacy-inventory.js",
"check-test-only-exports": "node scripts/check-test-only-exports.js",
"todo:list": "python3 scripts/todo-report.py",
"todo:check": "python3 scripts/todo-report.py --check",
"check-todo-stamps": "python3 scripts/check-todo-stamps.py",
"check": "bun run lint && bun run lint:backend && bun run typecheck && bun run validate-locales && bun run check-endpoint-matrix && bun run check-legacy-inventory && bun run check-test-only-exports && bun run todo:check && bun run db:check-destructive && bun run test:scripts && bun run test && bun run test:frontend && bun run test:electron"
},
"devDependencies": {
"@commitlint/cli": "^21.2.1",
"@commitlint/config-conventional": "^21.2.0",
"concurrently": "^10.0.3",
"openapi-typescript": "^7.13.0",
"prettier": "^3.9.6"
},
"overrides": {
"vite": "8.0.16",
"picomatch": "4.0.4",
"path-to-regexp": "^8.2.0",
"minimatch": "^9.0.0",
"flatted": "3.4.2",
"ip-address": "^10.4.0",
"qs": ">=6.15.2",
"ws": ">=8.21.0",
"typescript": "^6.0.3",
"brace-expansion": "^2.1.3",
"nanoid": "^3.3.17",
"js-yaml": "^4.3.1",
"shell-quote": "^1.10.0",
"undici": "^7.29.0",
"fast-uri": "^3.1.5"
},
"resolutions": {
"vite": "8.0.16",
"picomatch": "4.0.4",
"path-to-regexp": "^8.2.0",
"minimatch": "^9.0.0",
"flatted": "3.4.2",
"ip-address": "^10.4.0",
"qs": ">=6.15.2",
"ws": ">=8.21.0",
"typescript": "^6.0.3",
"brace-expansion": "^2.1.3",
"nanoid": "^3.3.17",
"js-yaml": "^4.3.1",
"shell-quote": "^1.10.0",
"undici": "^7.29.0",
"fast-uri": "^3.1.5"
}
}