Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Target

Hierarchy

  • Target

Index

Constructors

constructor

Properties

ctx

ctx: Context

Optional error

error: Error

mtime

mtime: number

name

name: string

pendingDependencyCount

pendingDependencyCount: number = 0

promises

promises: [function, function][] = []

Optional rule

rule: Rule

state

state: TargetState = TargetState.INIT

Methods

__computed

  • __computed(): string

addPromise

  • addPromise(resolve: function, reject: function): void
  • Parameters

    • resolve: function
    • reject: function
        • (e: Error): void
        • Parameters

          • e: Error

          Returns void

    Returns void

getDependencies

  • getDependencies(): string[]

isFinished

  • isFinished(): boolean

isReady

  • isReady(): boolean

isResolved

  • isResolved(): boolean

isStarted

  • isStarted(): boolean

reject

  • reject(err: Error): void
  • Parameters

    • err: Error

    Returns void

reset

  • reset(): void

resolve

  • resolve(): void

start

  • start(): void

updateMtime

  • updateMtime(): void

writeDependency

  • writeDependency(): Promise<void>

Static create

  • create(__namedParameters: object): Target
  • Parameters

    • __namedParameters: object
      • fs: FileSystem
      • make: function
          • Parameters

            • target: string

            Returns Promise<TimeStamp>

      • match: null | RegExpExecArray
      • root: string
      • rule: undefined | Rule
      • target: string

    Returns Target

Generated using TypeDoc