Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 560 Bytes

File metadata and controls

27 lines (19 loc) · 560 Bytes

📃 reporter-verbose

Verbose reporter.

Install

$ yarn add --dev @start/reporter-verbose

Usage

Example

export default (taskName: string) => {
  const emitter = new EventEmitter()

  emitter.on('start', (pluginName: string) => {})
  emitter.on('message', (pluginName: string, message: string) => {})
  emitter.on('file', (pluginName: string, file: string) => {})
  emitter.on('done', (pluginName: string) => {})
  emitter.on('error', (pluginName: string, error: Error | string[] | string | null) => {})

  return emitter
}