Home Manual Reference Source
import {BuildNodeRunner} from 'projext/src/services/building/buildNodeRunner.js'
public class | source

BuildNodeRunner

This service provides a simple interface for running targets on a development environment using Nodemon. The actual service that does the 'running' is buildNodeRunnerProcess, but this one takes care of reading and processing a target settings before telling the other service to start Nodemon.

Constructor Summary

Public Constructor
public

constructor(buildNodeRunnerProcess: BuildNodeRunnerProcess, projectConfiguration: ProjectConfigurationSettings, targets: Targets, utils: Utils)

Class constructor.

Member Summary

Public Members
public

A local reference for the buildNodeRunnerProcess service.

public

A local reference for the targets service.

public

A local reference for the utils service.

Method Summary

Public Methods
public

runTarget(target: Target, forceInspect: boolean): Nodemon

Run a target with Nodemon.

Public Constructors

public constructor(buildNodeRunnerProcess: BuildNodeRunnerProcess, projectConfiguration: ProjectConfigurationSettings, targets: Targets, utils: Utils) source

Class constructor.

Params:

NameTypeAttributeDescription
buildNodeRunnerProcess BuildNodeRunnerProcess

To actually run a target process.

projectConfiguration ProjectConfigurationSettings

To read the targets and their templates.

targets Targets

To get the information of the included targets.

utils Utils

To normalize executable extensions.

Public Members

public buildNodeRunnerProcess: BuildNodeRunnerProcess source

A local reference for the buildNodeRunnerProcess service.

public targets: Targets source

A local reference for the targets service.

public utils: Utils source

A local reference for the utils service.

Public Methods

public runTarget(target: Target, forceInspect: boolean): Nodemon source

Run a target with Nodemon.

Params:

NameTypeAttributeDescription
target Target

The target information.

forceInspect boolean
  • optional
  • default: false

Whether or not to "force enable" the Node inspector, even if the target has disabled it.

Return:

Nodemon

Throw:

Error

If the target type is browser.

Error

If the target needs to be bundled.