hunk.code_window:       logger: scheduleOptions.logger || new logging.NullLogger(),
         currentDirectory: this._host.getCurrentDirectory(),
         workspaceRoot: this._host.getWorkspaceRoot(),
       });
     }
     scheduleTarget(
       target: Target,
       overrides: json.JsonObject = {},
  
hunk.labels: keep keep add keep keep keep keep keep
hunk.after_edit:       analytics: scheduleOptions.analytics,
  
hunk.file_path: packages/angular_devkit/architect/src/architect.ts
hunk.type: add
file: // TODO(architect): edit the architect config instead of the cli config.
  
  import {
    writeMultipleFiles,
    expectFileToMatch
  } from '../../utils/fs';
  import { ng } from '../../utils/process';
  import { updateJsonFile } from '../../utils/project';
  import { oneLineTrim } from 'common-tags';
  
  export default function () {
    return writeMultipleFiles({
      'src/string-style.css': '.string-style { color: red }',
      'src/input-style.css': '.input-style { color: red }',
      'src/lazy-style.css': '.lazy-style { color: red }',
      'src/pre-rename-style.css': '.pre-rename-style { color: red }',
      'src/pre-rename-lazy-style.css': '.pre-rename-lazy-style { color: red }',
    })
      .then(() => updateJsonFile('angular.json', workspaceJson => {
        const appArchitect = workspaceJson.projects['test-project'].architect;
        appArchitect.build.options.styles = [
          { input: 'src/string-style.css' },
          { input: 'src/input-style.css' },
          { input: 'src/lazy-style.css', lazy: true },
          { input: 'src/pre-rename-style.css', bundleName: 'renamed-style' },
          { input: 'src/pre-rename-lazy-style.css', bundleName: 'renamed-lazy-style', lazy: true }
        ];
      }))
      .then(() => ng('build', '--extract-css'))
      // files were created successfully
      .then(() => expectFileToMatch('dist/test-project/styles.css', '.string-style'))
      .then(() => expectFileToMatch('dist/test-project/styles.css', '.input-style'))
      .then(() => expectFileToMatch('dist/test-project/lazy-style.css', '.lazy-style'))
      .then(() => expectFileToMatch('dist/test-project/renamed-style.css', '.pre-rename-style'))
      .then(() => expectFileToMatch(
        'dist/test-project/renamed-lazy-style.css',
        '.pre-rename-lazy-style',
      ))
      // index.html lists the right bundles
      .then(() => expectFileToMatch('dist/test-project/index.html', oneLineTrim`
        <link rel="stylesheet" href="styles.css">
        <link rel="stylesheet" href="renamed-style.css">
      `))
      .then(() => expectFileToMatch('dist/test-project/index.html', oneLineTrim`
        <script src="runtime.js"></script>
        <script src="polyfills.es5.js" nomodule></script>
        <script src="polyfills.js"></script>
        <script src="vendor.js"></script>
        <script src="main.js"></script>
      `));
  }
  