Wire it all up...
This commit is contained in:
24
README.md
24
README.md
@@ -1 +1,23 @@
|
||||
# Simple Package (Docker)
|
||||
# mail-landing
|
||||
|
||||
Static landing site for mail.mifi.holdings (HTML/CSS/JS), built to `dist/` and served with nginx in production.
|
||||
|
||||
## Dev Container (local development and preview)
|
||||
|
||||
1. **Open in Dev Container**
|
||||
In Cursor/VS Code: _Command Palette_ → **Dev Containers: Reopen in Container** (or **Clone Repository in Container Volume** when opening the repo).
|
||||
The first time will build the container (Node 22 + pnpm) and run `pnpm install`.
|
||||
|
||||
2. **Preview the site**
|
||||
In the container terminal:
|
||||
- **Quick preview** (serves `src/` as-is, no build):
|
||||
`pnpm preview`
|
||||
- **Production-like preview** (build then serve `dist/`):
|
||||
`pnpm preview:prod`
|
||||
|
||||
Port **3000** is forwarded; open **http://localhost:3000** in the host browser (or use the “Preview” port notification).
|
||||
|
||||
3. **Other commands**
|
||||
- `pnpm build` — build `src/` → `dist/` (minify JS/CSS, inline critical CSS)
|
||||
- `pnpm lint` / `pnpm format` — lint and format
|
||||
- `pnpm docker:build` — build production image
|
||||
|
||||
Reference in New Issue
Block a user