Live Reload With Deno
I am using the Deno runtime with Hono and I was looking for a way to add live reload. I have searched for module but with little success. Can anyone point me in the direction of a resource so I can get the browser to refresh on save?
Cheers
Jim
9 Replies
i made something like that for bun.js
it finds all the route.ts file and adds to the generateServer.ts
btw there is a reason it doesnt use file watcher, they somehow dont always detect changes 100% the time
dont waste time trying different watchers like me
such a structure will generate code like this, hopefully it makes sense
Thanks @blurSkye π΅πΈπ, I will try and get something like it for Deno. If I get stuck would you be willing to take a look at my work and offer some guidance? Thanks for what you provided.
well bun is just objectively superior, it is faster, no reason i see to not use bun
check hono.js docs
remove bunjs specific bits like
bun.serve and shit, i suppose deno doesnt need anyh of those, it works without that
@jamesfoleythere is no feature expected to be coming from hono team regarding live reload, you will have make a adapter that reloads live for you, thats that,, so add the solved tag
or just use nodemon like tool
Thanks @blurSkye π΅πΈπ for the help greatly appreciated.