Loading workspace insights... Statistics interval
7 days30 daysLatest CI Pipeline Executions
14d2e3e7 Changed public app dev defaults (#29104)
no ref
`pnpm dev` was unnecessarily heavy - in most cases, developers _do not_
need to touch our public/frontend apps. It so happens that these apps
are quite heavy by virtue of us serving UMD files, rather than a simple
vite dev server. In light of that, I've stripped back `pnpm dev` to run
**only Ghost + Portal**.
Other apps can be run using a convenient `pnpm dev:public` or by a more
traditional `pnpm nx run @tryghost/comments-ui` or `cd /apps/comments-ui
&& pnpm dev` while running `pnpm dev` at the root.
## Summary
Updates local dev defaults so `pnpm dev` starts the common frontend set
only:
- Admin
- Portal
The less common public UMD app watchers are now explicit opt-in via
`pnpm dev:public`:
- Comments UI
- Signup Form
- Sodo Search
- Announcement Bar
- Admin Toolbar
## Changes
- Adds `pnpm dev:public`, backed by `ghost-monorepo:docker:dev:public`
- Adds `pnpm dev:services` for analytics, storage, and Stripe compose
services
- Adds `pnpm dev:full` for optional services plus public UMD app
watchers
- Keeps existing service-specific scripts (`dev:analytics`,
`dev:storage`, `dev:stripe`, etc.) working as before
- Updates `AGENTS.md` and `docker/ghost-dev/README.md` to describe the
new default and opt-in commands
## Benchmark Notes
Steady-state host-process measurement:
- `pnpm dev`: 13 host processes, 2.88 GiB summed RSS
- `pnpm dev:public`: 23 host processes, 4.25 GiB summed RSS
- Default savings: -10 host processes, -1.37 GiB summed RSS
## Validation
- `node -e
"JSON.parse(require('fs').readFileSync('package.json','utf8'))"`
- `pnpm --silent nx show project ghost-monorepo --json`
- `git diff --check`