@nrwl/js:node

Execute Nodejs applications.

Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/configuration/projectjson#targets.

Options

args

Array<string>
Default: []

Extra args when starting the app.

buildTarget

Required
string

The target to run to build you the app.

buildTargetOptions

Additional options to pass into the build target.

host

string
Default: localhost

The host to inspect the process on.

inspect

oneOf [string, boolean]
Default: inspect

Ensures the app is starting with debugging.

port

number
Default: 9229

The port to inspect the process on. Setting port to 0 will assign random free ports to all forked processes.

runtimeArgs

Array<string>
Default: []

Extra args passed to the node process.

waitUntilTargets

Array<string>
Default: []

The targets to run to before starting the node app.

watch

boolean
Default: true

Enable re-building when files change.