fs-monitor-stack

1.1.1 • Public • Published

fs-monitor-stack

Example (for broccoli')

this.builder = new broccoli.Builder(this.tree);

var builder = this;

this.builder.on('start', function(node) {
  builder.monitor = new FSMonitor();
});

this.builder.on('nodeStart', function(node) {
  var metric = new NodeMetric(node);
  builder.monitor.push(metric);
});

this.builder.on('nodeEnd', function(node) {
  builder.monitor.pop();
});

this.builder.on('end', function(node) {
  console.log('endBuild');
  console.log(builder.monitor.totalStats());
});

Readme

Keywords

none

Package Sidebar

Install

npm i fs-monitor-stack

Weekly Downloads

2,951

Version

1.1.1

License

ISC

Last publish

Collaborators

  • stefanpenner