hunk.code_window:   "defaults": {
       "prefix": "<%= prefix %>",
       "sourceDir": "<%= sourceDir %>",
       "styleExt": "<%= styleExt %>",
       "prefixInterfaces": false
     }
   }
hunk.labels: keep keep keep keep replace keep keep
hunk.after_edit:     "prefixInterfaces": false,
       "lazyRoutePrefix": "+"
  
hunk.file_path: addon/ng2/blueprints/ng2/files/angular-cli.json
hunk.type: replace
file: /* jshint node: true, esversion: 6 */
  'use strict';
  
  const Plugin = require('broccoli-caching-writer');
  const Builder = require('systemjs-builder');
  const fse = require('fs-extra');
  const path = require('path');
  
  class BundlePlugin extends Plugin {
    constructor(inputNodes, options) {
      super(inputNodes, {});
      options = options || {};
      this.options = options;
    }
  
    build() {
      var relativeRoot = path.relative(process.cwd(), this.inputPaths[0]);
      var builder = new Builder(relativeRoot, `${relativeRoot}/system-config.js`);
      return builder.bundle('main - [app/**/*]',
          `${this.outputPath}/main.js`, {
            minify: true
          })
        .then(() => builder.bundle('app - (app/**/*.js - [app/**/*.js])',
          `${this.outputPath}/app/index.js`, {
            minify: true
          }))
        .then(() => fse.copySync(`${this.inputPaths[0]}/system-config.js`,
          `${this.outputPath}/system-config.js`));
    }
  }
  
  module.exports = BundlePlugin;
  