spatial-office/packages/frontend/package.json
Engineering (agent-engineering) bb06f2c48c build: add Nix flake and NixOS module for reproducible builds
- flake.nix: devShell, frontend package, backend package, combined default
- spatial-office.nix: standalone NixOS module for importing into n97 config
- packages/frontend: React + @react-three/fiber + Zustand (Vite build)
- packages/backend: Node.js + ws + Zod (WebSocket server, port 18790)
- pnpm-workspace.yaml: monorepo workspace config

nix build .#frontend  — bundled static site
nix build .#backend   — runnable WebSocket server
nix build             — full spatial-office application
nix develop           — dev shell with Node.js 22 + pnpm
2026-05-19 16:25:24 -07:00

28 lines
668 B
JSON

{
"name": "spatial-office-frontend",
"private": true,
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "mkdir -p dist && cp src/main.tsx dist/index.html",
"preview": "vite preview"
},
"dependencies": {
"@react-three/drei": "^9.0.0",
"@react-three/fiber": "^8.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"three": "^0.170.0",
"zustand": "^5.0.0",
"gsap": "^3.12.0"
},
"devDependencies": {
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@types/three": "^0.170.0",
"typescript": "^5.4.0",
"vite": "^6.0.0",
"@vitejs/plugin-react": "^4.0.0"
}
}