Closed duskmoon314 closed 3 months ago
This is a very basic prototype to add the watch function to the serve command leveraging the watchexec crate.
watchexec
How it works:
--watch
--no-build=false
proj.build()
typ
warp
The implementation now cannot trigger the browser to fetch the page. This is not convenient.
In addition, mdbook has a separate watch command. Maybe we should follow that design?
mdbook
watch
This is a very basic prototype to add the watch function to the serve command leveraging the
watchexec
crate.How it works:
--watch
and--no-build=false
,proj.build()
is executed every timewatchexec
find a file change event with extensiontyp
.warp
is not modified except in a tokio spawned thread. Thus, warp runs in the background, and compilation is executed for every file change.The implementation now cannot trigger the browser to fetch the page. This is not convenient.
In addition,
mdbook
has a separatewatch
command. Maybe we should follow that design?