Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DISCUSSION] HookData structure #6

Open
misterdev opened this issue Jun 12, 2019 · 0 comments
Open

[DISCUSSION] HookData structure #6

misterdev opened this issue Jun 12, 2019 · 0 comments

Comments

@misterdev
Copy link
Owner

misterdev commented Jun 12, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant