Skip to content

feat: add build mode flag and react-grab dev tooling - #136

Merged
RhysSullivan merged 2 commits into
UsefulSoftwareCo:mainfrom
aryasaatvik:feat/dev-build-and-react-grab
Apr 9, 2026
Merged

feat: add build mode flag and react-grab dev tooling#136
RhysSullivan merged 2 commits into
UsefulSoftwareCo:mainfrom
aryasaatvik:feat/dev-build-and-react-grab

Conversation

@aryasaatvik

Copy link
Copy Markdown
Contributor

Summary

  • Add --mode production|development flag to the CLI build script using node:util parseArgs. Controls Vite build mode, NODE_ENV, and binary minification. Defaults to production.
  • Add react-grab to the local web app, loaded conditionally in dev mode for UI element inspection with coding agents.

Test plan

  • bun run apps/cli/src/build.ts binary --single — builds production binary (default)
  • bun run apps/cli/src/build.ts binary --single --mode development — builds unminified dev binary
  • bun run apps/cli/src/build.ts — prints updated usage
  • bun run dev in apps/local — react-grab loads in dev mode
  • Production build of apps/local — react-grab is not included

Use node:util parseArgs for ergonomic CLI arg parsing. The --mode flag
controls Vite build mode, NODE_ENV, and binary minification. Defaults
to production.
Loads react-grab conditionally in development mode via import.meta.env.DEV,
enabling Cmd+C element selection for faster context grabbing with coding agents.
@RhysSullivan
RhysSullivan merged commit 0501cb1 into UsefulSoftwareCo:main Apr 9, 2026
RhysSullivan pushed a commit that referenced this pull request May 31, 2026
* feat(cli): add --mode flag for production/development builds

Use node:util parseArgs for ergonomic CLI arg parsing. The --mode flag
controls Vite build mode, NODE_ENV, and binary minification. Defaults
to production.

* feat(local): add react-grab for dev UI element inspection

Loads react-grab conditionally in development mode via import.meta.env.DEV,
enabling Cmd+C element selection for faster context grabbing with coding agents.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants