All files / ember-web-app/lib/broccoli generator.js

42.86% Statements 3/7
100% Branches 0/0
0% Functions 0/2
42.86% Lines 3/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  1x 1x   1x                      
'use strict';
const CachingWriter = require('broccoli-caching-writer');
const fuzzyPurgeRequireEntry = require('../utils/fuzzy-purge-require-entry');
 
module.exports = class Generator extends CachingWriter {
  constructor(inputNode, { manifest }) {
    super([inputNode], { annotation: `generate ${manifest.name}` });
    this.manifest = manifest;
  }
 
  build() {
    fuzzyPurgeRequireEntry(this.manifest.configurationPath);
    this.manifest.build({ directory: this.outputPath });
  }
};