Watch command skeleton (#17246)

Summary

Rewrites the app:dev command to use Vite's dev server instead of manual
file watching with chokidar. This provides better file watching
capabilities and aligns with the existing build tooling.

<img width="1588" height="822" alt="image"
src="https://github.com/user-attachments/assets/7c54bd39-4905-456f-8e3d-64e97b031de0"
/>
This commit is contained in:
Charles Bochet
2026-01-19 17:05:49 +01:00
committed by GitHub
parent 374303455a
commit 5a5e9eeb9e
17 changed files with 240 additions and 485 deletions
@@ -56,11 +56,9 @@ export const registerCommands = (program: Command): void => {
program
.command('app:dev [appPath]')
.description('Start development mode: sync local application changes')
.option('-d, --debounce <ms>', 'Debounce delay in milliseconds', '1000')
.action(async (appPath, options) => {
.description('Watch and sync local application changes')
.action(async (appPath) => {
await devCommand.execute({
...options,
appPath: formatPath(appPath),
});
});