@nrwl/node: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 playground

This is an example of what the properties looks like and their values. Go ahead and try, test your configuration this is a live-edit window, you can interact directly and get intellisense on property's values.

Loading...

Options

args

Array<string>
Default:

Extra args when starting the app.

buildTarget

Required
string

The target to run to build you the app.

buildTargetOptions

Default: [object Object]

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.