Skip to content

feat: add --dev flag to launch dev server after setup (v0.4.5)#19

Merged
masonlet merged 13 commits into
mainfrom
feat/dev-flag
Jul 4, 2026
Merged

feat: add --dev flag to launch dev server after setup (v0.4.5)#19
masonlet merged 13 commits into
mainfrom
feat/dev-flag

Conversation

@masonlet

@masonlet masonlet commented Jul 4, 2026

Copy link
Copy Markdown
Member

Summary

Adds a --dev/--no-dev flag that launches the project's dev server (npm run dev) in the foreground after setup completes.

Changes

  • --dev / --no-dev flags with config-file support (dev/no_dev in ConfigEntry, resolved like other paired flags)
  • watch/no_watch are now config-aware (previously CLI-only)
  • New src/commands/dev.rs: dev-script detection + foreground dev server launch; dry-run assumes npm run dev
  • Refactors:
    • read_package_json lifted out of mono/ into shared commands::npm (now takes a repo path directly)
    • Windows npmcmd /c wrapping extracted into resolve_exe_args (shared by run_command)
  • Windows dev server runs via PowerShell so Ctrl-C stops it cleanly (avoids cmd.exe's "Terminate batch job?" prompt)
  • README: --dev docs, collapsible Installation/Workspace Structure sections, Config/Profile reorder

@masonlet
masonlet merged commit d387e16 into main Jul 4, 2026
10 checks passed
@masonlet
masonlet deleted the feat/dev-flag branch July 4, 2026 18:29
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.

1 participant