0.0.7 • Published 16 days ago

@hot-hook/runner v0.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
16 days ago

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/runner

Utilisation

pnpm hot-runner bin/server.js

To 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.ts

Flags

--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".

0.0.7

16 days ago

0.0.5

1 month ago

0.0.4

1 month ago

0.0.6

1 month ago

0.0.3

1 month ago

0.0.2

1 month ago

0.0.1

2 months ago