Hwy is a fullstack web framework for driving a (p)react frontend with a Go backend. Includes end-to-end typesafety, file-based nested UI routing, and much more.
Removes runtime node:fs calls in favor of dynamic imports.
Needed to set up a warming strategy to get root dirname in memory earlier.
hwyInit should now be awaited (await hwyInit(options)).
It was always technically async, but prior templates didn't await it, and they worked.
Now, with the warming strategy to remove runtime node:fs calls, it should always be awaited, or it might not work.
Among the options it takes is now a required isDev parameter. This lets us be more agnostic around environments and stop assuming process.env.NODE_ENV === "development" is correct.
Moves to more traditional prettier settings.
Removes nodemon, which has been an issue with Bun when run in --bun mode. Also, it's always nice to remove deps. Nodemon is replaced with lower level spawning of processes within hwy-dev-serve and simply watching and restarting with chokidar (already a dep) instead of nodemon.
Also adds a Deno-specific version of this, in a new hwy-dev-serve-deno command.
Removes runtime
node:fs
calls in favor of dynamic imports.hwyInit
should now be awaited (await hwyInit(options)
).node:fs
calls, it should always be awaited, or it might not work.options
it takes is now a requiredisDev
parameter. This lets us be more agnostic around environments and stop assumingprocess.env.NODE_ENV === "development"
is correct.Moves to more traditional prettier settings.
Removes
nodemon
, which has been an issue with Bun when run in--bun
mode. Also, it's always nice to remove deps. Nodemon is replaced with lower level spawning of processes withinhwy-dev-serve
and simply watching and restarting withchokidar
(already a dep) instead ofnodemon
.hwy-dev-serve-deno
command.Adds a Bun option to the
create-hwy
CLI.Bump deps
Closes #4