plannar/example plan
.plannar/plans/hello-world.mdx

Hello, Plannar!

A worked example of what a real plan looks like. Delete this file when you write your first one — or keep it around as a reference.

Plan: add --dry-run to plannar export

Today plannar export writes HTML to disk immediately. Reviewers who just want to see what would be written — and where — have to delete the output after the fact.

A --dry-run flag prints the resolved plan list, output paths, and total size, then exits without touching the filesystem.

Behavior

Toggle the flag to see the difference:

writes to disk
$ plannar export
✓ wrote .plannar/exports/onboarding.html
✓ wrote .plannar/exports/pagination.html
✓ wrote .plannar/exports/rate-limit.html
3 plans exported (131 KB)

Edge cases

  • Empty plans directoryexit 0 with no plans found (same as today).
  • --out set to a non-existent dirdry-run still validates the path and warns; no mkdir.
  • A plan fails to compiledry-run reports the error and exits non-zero, matching the non-dry path.

Acceptance

  • plannar export --dry-run exits 0 and writes nothing
  • Output lists each plan, target path, and byte size
  • Same exit codes as a real export on compile errors
  • Covered by a test in packages/plannar/src/commands/export.test.ts

Next steps for you

  • Edit this file in .plannar/plans/hello-world.mdx to draft your own plan
  • Run plannar editor to preview it live with HMR
  • Run plannar export <name> to package it as a single HTML file