docs: add frontend development guidelines
This commit is contained in:
5
.trellis/spec/frontend/directory-structure.md
Normal file
5
.trellis/spec/frontend/directory-structure.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# Directory Structure
|
||||
|
||||
The Vite workbench lives in `workbench/client/`. Application code is under `src/`: `components/` for UI, `map/` for OpenLayers adapters, `lib/` for API clients, `types/` for API contracts, and `ui/` for shared primitives. The Node HTTP server remains `workbench/server.js`.
|
||||
|
||||
Keep OpenLayers construction and source mutation outside page components; `src/components/MapCanvas.tsx` owns lifecycle and `src/map/layers.ts` owns the layer registry.
|
||||
Reference in New Issue
Block a user