mirror of
https://github.com/Sea-Haven-Industries/seahaven-ap.git
synced 2026-09-30 06:53:18 +00:00
* feat(shared): add payment ladder and CSV domain package Introduce @seahaven-ap/shared via npm workspaces so FE and future API share payments-dashboard-compatible status ladders, pay-date helpers, and CSV headers. * fix(web): build shared package before vite dev Ensure fresh npm ci && npm run dev (and Playwright webServer) can resolve @seahaven-ap/shared dist exports that are gitignored.
28 lines
679 B
Markdown
28 lines
679 B
Markdown
# Sea Haven AP
|
|
|
|
Internal accounts payable automation for Sea Haven Industries (`ap.seahaven.com`).
|
|
|
|
## Workspace layout
|
|
|
|
npm workspaces:
|
|
|
|
- `@seahaven-ap/web` — Vite/React SPA (repo root)
|
|
- `@seahaven-ap/shared` — payment ladder, invoice helpers, pay-date parsers, CSV constants ([`packages/shared`](packages/shared))
|
|
- `@seahaven-ap/api` — reserved for AP-14 (not present yet)
|
|
|
|
## Local development
|
|
|
|
```bash
|
|
npm ci
|
|
cp .env.example .env # optional; defaults already use mocks
|
|
npm run dev
|
|
```
|
|
|
|
App serves at http://localhost:3000. `VITE_USE_MOCKS=true` is the default data path until the API is wired (`src/mocks`).
|
|
|
|
## Verify
|
|
|
|
```bash
|
|
npm run verify
|
|
npm run test:e2e
|
|
```
|