NPM Build Utilities @ 0.2.0-alpha.1
    Preparing search index...

    Class Stage_ConsoleInternal

    To be used by AbstractStage and those that inherit from it.

    Includes a variety of utilities for printing messages to the console.

    0.1.0-alpha

    Implements

    Index

    Constructors

    Properties

    clr: Colour

    Colour slug for this colour-coding this class.

    config: Config.Class

    Current project config.

    Instance to use within/out the class.

    params: Params

    Current CLI params.

    Adds VariableInspector capabilities to the logger.

    Methods

    • Internal

      Method for printing a log message to the console. Only if CLI.Params.debug is truthy.

      Parameters

      • msg: string | string[] | BulkMsgs

        The message(s) to print to the console.

      • level: number

        Depth level for output to the console.

      • OptionalmsgArgs: Partial<BulkMsgArgs>

        Argument overrides for the message.

      • OptionaltimeArgs: Partial<BulkMsgArgs>

        Argument overrides for the message's timestamp.

      Returns void

    • Internal

      Prints a timestamped log message to the console.

      Parameters

      • msg: string | string[] | BulkMsgs

        The message(s) to print to the console.

      • level: number

        Depth level for output to the console.

      • OptionalmsgArgs: Partial<BulkMsgArgs>

        Argument overrides for the message.

      • OptionaltimeArgs: Partial<BulkMsgArgs>

        Argument overrides for the message's timestamp.

      Returns void

    • Internal

      Prints a timestamped log message to the console. Only if CLI.Params.progress is truthy.

      Parameters

      • msg: string | string[] | BulkMsgs

        The message(s) to print to the console.

      • level: number

        Depth level for this message.

      • OptionalmsgArgs: Partial<BulkMsgArgs>

        Argument overrides for the message.

      • OptionaltimeArgs: Partial<BulkMsgArgs>

        Argument overrides for the message's timestamp.

      Returns void

    • Internal

      Prints a message to the console signalling the start or end of this build stage. Uses Stage_Consolelog.

      Parameters

      • msg: string | string[] | BulkMsgs

        Text to display as start/end message.

      • which: null | "start" | "end"

        Whether we are starting or ending.

      • args: Partial<MessageMaker.BulkMsgArgs> = {}

        Message argument overrides.

      Returns void

    • Internal

      Method for printing a log message to the console. Only if CLI.Params.verbose is truthy.

      Parameters

      • msg: string | string[] | BulkMsgs

        The message(s) to print to the console.

      • level: number

        Depth level for this message.

      • OptionalmsgArgs: Partial<BulkMsgArgs>

        Argument overrides for the message.

      • OptionaltimeArgs: Partial<BulkMsgArgs>

        Argument overrides for the message's timestamp.

      Returns void

    • Internal

      Method for printing a log message to the console. Only if CLI.Params.debug is truthy.

      Parameters

      • msg: string | string[] | BulkMsgs

        The message(s) to print to the console.

      • level: number

        Depth level for output to the console.

      • OptionalmsgArgs: Partial<BulkMsgArgs>

        Argument overrides for the message.

      • OptionaltimeArgs: Partial<BulkMsgArgs>

        Argument overrides for the message's timestamp.

      Returns void