Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
58 lines (58 loc) · 3.62 KB
/
Copy pathpackage.json
File metadata and controls
58 lines (58 loc) · 3.62 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
{
"name": "tempmhacks",
"version": "0.0.0",
"private": true,
"overrides": {
"@photon-ai/proto": "0.2.3",
"@spectrum-ts/core": { "@photon-ai/proto": "0.2.3" }
},
"type": "module",
"workspaces": [
"packages/shared",
"packages/db-generated",
"packages/messaging",
"apps/web",
"services/alerts",
"services/cv",
"services/photon",
"services/evac",
"spacetimedb"
],
"description": "Repository scaffold and local development commands for tempMhacks",
"scripts": {
"db:generate": "mkdir -p packages/db-generated/src/generated && spacetime generate --lang typescript --out-dir packages/db-generated/src/generated --module-path spacetimedb",
"build:shared": "npm run build --workspace @tempmhacks/db-generated && npm run build --workspace @tempmhacks/shared && npm run build --workspace @tempmhacks/messaging",
"typecheck": "npm run build:shared && tsc --noEmit -p tsconfig.json && npm run typecheck --workspace @tempmhacks/spacetimedb && npm run typecheck --workspace @tempmhacks/web && npm run typecheck --workspace @tempmhacks/photon && npm run build --workspace @tempmhacks/evac",
"test": "npm run typecheck && tsx --test spacetimedb/tests/*.test.ts services/alerts/tests/*.test.ts services/cv/tests/*.test.ts services/photon/tests/*.test.ts services/evac/tests/*.test.ts scripts/demo/*.test.ts && npm run test --workspace @tempmhacks/web",
"db:build": "npm run typecheck && spacetime build --module-path spacetimedb",
"db:publish": "npm run typecheck && spacetime publish --server local --module-path spacetimedb tempmhacks-local",
"db:publish:maincloud": "npm run typecheck && spacetime publish --server maincloud --module-path spacetimedb $SPACETIMEDB_DATABASE",
"test:integration": "tsx scripts/test-spacetimedb.ts",
"test:mobile-e2e": "tsx scripts/test-mobile-e2e.ts",
"test:detection-e2e": "tsx scripts/test-detection-e2e.ts",
"test:ios": "cd apps/ios && xcodebuild -project SauronLocation.xcodeproj -scheme SauronLocation -destination \"platform=iOS Simulator,name=${IOS_SIMULATOR:-iPhone 17}\" test",
"test:ios-e2e": "tsx scripts/test-mobile-ios-e2e.ts",
"demo:download-fixture": "tsx scripts/demo/download-fixture.ts",
"demo:seed:cameras": "tsx scripts/demo/cameras.ts",
"demo:seed:cameras:sdk": "tsx scripts/demo/cameras-sdk.ts",
"demo:seed:incident": "tsx scripts/demo/incident.ts",
"demo:reset": "tsx scripts/demo/reset.ts",
"dev:web": "npm run dev --workspace @tempmhacks/web",
"build:web": "npm run build:shared && npm run build --workspace @tempmhacks/web",
"dev:evac": "npm run build:shared && npm run start --workspace @tempmhacks/evac",
"dev:cv": "npm run build:shared && npm run dev --workspace @tempmhacks/cv",
"dev:photon": "npm run dev --workspace @tempmhacks/photon",
"dev:ngrok": "ngrok http --url=${NGROK_HOST:-starfish-revolving-footman.ngrok-free.dev} ${WEB_PORT:-4173}",
"dev:stack": "bash scripts/dev-stack.sh",
"dev:stack:health": "curl -fsS https://${NGROK_HOST:-starfish-revolving-footman.ngrok-free.dev}/health && echo",
"photon:send-test": "npm run send-test --workspace @tempmhacks/photon --",
"dev:alerts": "npm run dev --workspace @tempmhacks/alerts",
"demo:start": "node -e \"console.log('Hosted DB: set SPACETIMEDB_* in .env, then run npm run demo:seed:cameras:sdk and npm run dev:photon / npm run dev:alerts / npm run dev:cv. Local DB: npm run demo:download-fixture, npm run db:publish, npm run demo:seed:cameras.')\""
},
"devDependencies": {
"@photon-ai/proto-complete": "npm:@photon-ai/proto@0.2.3",
"@types/node": "^22.0.0",
"tsx": "^4.20.0",
"typescript": "~5.9.3"
}
}