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:
@@ -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),
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user