Skip to content

[DISCUSSION] HookData structure #6

@misterdev

Description

@misterdev

Currently, the reporter exposes 4 hooks: error, warn, info and stats (code).
Whenever a hook is called, it passes to the callback some data that I named HookData (code).

This is the current structure of the HookData type:

    const hookData = {
      context: 'C:/files/myproj',
      hookId: 'compiler.done',
      count: 1, // incremental
      lastCall: 1560338239264, // timestamp of the last call, will probably change name
      data: "data from webpack hook" // stats, error, warn, ecc..
    };

What do you think about it?
Which other information could be useful for a user writing a custom reporter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions