Everything is managed by..:
After install you need to trust the project..:
mise trustThe project uses mise to manage scripts. To list all available scripts..:
mise runScripts are grouped, meaning that a script such as task run build will run
other scripts under its name to fulfil its function, in this case building the
frontend and compiling the server.
This may not be desired in every case, so it is recommended that scripts be run in a more granular way..:
# Bad
mise run build:frontend build:server start:server
# Good, we don't need to compile a binary
mise run build:frontend start:server
# Better, we can run the development server with HMR
mise run start:devAll scripts will run from any location within the project as if you were in the main directory, no fear.
Building the Frontend is very straightforward..:
mise run buildIt will prepare a standalone production binary ready to be run in
dist/server(.exe).
You can also avoid constantly rebuilding the server and build frontend instead or the other way around..:
# Build only the frontend
mise run build:frontend
# Build only the server (requires the built frontend)
mise run build:serverIf you want to clear the entire project of dependencies and build remnants..:
mise run cleanOver time, local repositories can become messy with untracked files, registered hooks, and temporary files in the .git folder. To clean up the repository (and possibly all your uncommitted work), run the following command..:
# Careful with this one!
mise run clean:git