0.1.0 • Published 12 months ago
@hot-hook/runner v0.1.0
Hot Hook Runner
The Hot Hook runner is a simple process manager that allows you to reload your NodeJS application only when necessary and requested by Hot Hook.
Installation
pnpm add @hot-hook/runnerUtilisation
pnpm hot-runner bin/server.jsTo use with Typescript, you can pass a hook like this:
# Run with ts-node
pnpm hot-runner --node-args="--loader=ts-node/esm" bin/server.ts
# Run with TSX
pnpm hot-runner --node-args="--import=tsx" bin/server.tsFlags
--clear-screen
Clears the console contents after each reload.
--node-args
Arguments to pass to NodeJS. For example, --node-args="--inspect".
--script-args
Arguments to pass to your script. For example, --script-args="--port=3000".