Skip to content

feat: add watch mode for automatic rebuilds#83

Open
zubeyralmaho wants to merge 1 commit intojotform:masterfrom
zubeyralmaho:feat/watch-mode
Open

feat: add watch mode for automatic rebuilds#83
zubeyralmaho wants to merge 1 commit intojotform:masterfrom
zubeyralmaho:feat/watch-mode

Conversation

@zubeyralmaho
Copy link

Adds watch mode using chokidar to automatically rebuild on file changes.

Changes

  • Added chokidar@3 for file watching
  • Added -wm, --watchMode CLI option to Runner
  • Watches project directories and triggers rebuild on change
  • Added unit tests

Usage

zenith build --watchMode
zenith build -wm

- Add -w, --watch flag to watch for file changes
- Automatically rebuild when files in watched projects change
- Use chokidar for efficient file watching
- Debounce rapid changes to prevent excessive builds
- Show clear status messages during watch mode
- Ignore node_modules, dist, build, and .zenith-cache directories
- Support graceful shutdown with Ctrl+C
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