Home Reference Source Repository

src/component/emit/events.js

'use strict';

const dot = require('dot-object');

/**
 * Emit component events
 */
const events = {};

events.$ = [
  'modules.process.start',
  'modules.process.end',
  'module.process.start',
  'module.process.end',
  'module.emit.asset',
].map(eventPath => {
  dot.str(eventPath, eventPath, events);
  
  return eventPath;
});

module.exports = events;