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

BuildNodeWatcherProcess

Extends:

NodeWatcher → BuildNodeWatcherProcess

This service watches directories in order to copy and/or transpile files into their build/distribution directories when they change.

Constructor Summary

Public Constructor
public

constructor(appLogger: Logger, buildTranspiler: BuildTranspiler, projectConfiguration: ProjectConfigurationSettings)

Member Summary

Public Members
public

A local reference for the appLogger service.

public

A local reference for the buildTranspiler service.

Inherited Summary

From class NodeWatcher
public

Whether or not the service is watching.

private

This will be the instance of watchpack when the service starts watching the files.

public

Gets the list of paths the service is watching.

public

stop()

Stops watching the directories.

public

watch(paths: Array, transpilationPaths: Array, copyPaths: Array): Watchpack

Starts watching the directories.

Public Constructors

public constructor(appLogger: Logger, buildTranspiler: BuildTranspiler, projectConfiguration: ProjectConfigurationSettings) source

Override:

NodeWatcher#constructor

Params:

NameTypeAttributeDescription
appLogger Logger

The inform on the CLI of the events of the watcher.

buildTranspiler BuildTranspiler

To transpile files if needed.

projectConfiguration ProjectConfigurationSettings

To read the watch settings.

Public Members

public appLogger: Logger source

A local reference for the appLogger service.

public buildTranspiler: BuildTranspiler source

A local reference for the buildTranspiler service.