Type object
File match .nodehawkrc
Schema URL https://catalog.lintel.tools/schemas/schemastore/nodehawkrc/latest.json
Source https://www.schemastore.org/nodehawkrc.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Properties

exec string required

The command to execute on file change.

Default: ""
Examples: "babel-node src/server", "ts-node src/server"
paths string | string[]

A string or an array of paths to watch. Supports globbing.

Default: "./src"
Examples: "./src"
root string

The root path from which all other paths will be resolved.

Default: "."
Examples: "."
ignored string

Paths, globs or regular expressions to ignore.

Default: ""
port integer

The port on which the server should run. This is passed to your application as process.env.PORT which should be used by you.

Default: 4000
logLevel integer

The level of logging. 0 - fatal, 1 - error, 2 - warning, 3 - info, 4 - debug

Default: 3
buffer integer

The buffer duration to wait before triggering a restart.

Default: 1500
bufferPoll integer

The buffer polling interval to check for the file stability.

Default: 100
display object

The various messages to display during different events.

5 nested properties
onBeforeStart string

The message to display before the watcher starts.

Default: "Starting..."
onStart string

The message to display after the watcher starts.

Default: "Started"
onBeforeRestart string

The message to display before the watcher restarts.

Default: "Restarting..."
onRestart string

The message to display after the watcher restarts.

Default: "Restarted"
onBeforeStop string

The message to display before the watcher stops.

Default: "Stopping..."
clearScreen boolean

Clear the screen on start and on every restart.

Default: true
env object

A set of key-value pairs which will be promptly passed on to your process and accessible via process.env.

Default:
{}