Skip to content

[DISCUSSION] HookData structure #6

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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