@mnci/cli 4.50.0 → 4.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -507,6 +507,22 @@ from File`), and the curated root scripts.
507
507
  4. Installs the chosen **stack** (see below), `husky` + `@commitlint/*` for
508
508
  real, so versions resolve at generation time.
509
509
 
510
+ ## Starting projects together (`mnci dev`)
511
+
512
+ `<name>:start` starts one project. `mnci dev web api` starts several at once, the usual case being a frontend and the
513
+ API it calls: `mnci dev` with no names asks which (or `--all` starts every one that can be started, and `--dry-run`
514
+ prints what would run). A script with no terminal must name them, and a name that is a library, or a typo, is refused
515
+ with the list that can be started.
516
+
517
+ Each project runs the Nx target its own start script names. That is not always `start`: a React or Node app's
518
+ `<name>:start` runs its `serve` target, a Go app's runs `start`, so `nx run-many -t start` would find nothing for the
519
+ first two. Output is shown with a `[project]` prefix. The projects run until the **first one stops**; then the others
520
+ are stopped too, so a crashed API does not leave a frontend quietly talking to nothing, and Ctrl+C stops them all
521
+ (`taskkill /T` on Windows, the process group elsewhere). The command exits with the status of the first to stop.
522
+
523
+ The `dev up` e2e section starts a real Vite server and an Express API together, talks to both, and checks that stopping
524
+ the command frees both ports.
525
+
510
526
  ## Container images (`mnci add container <name> --app <app>`)
511
527
 
512
528
  `container` is a kind that wraps an app you already have, so the app keeps its own kind and the image is a project