hunk.code_window:   getAotConfig,
     getCommonConfig,
     getStatsConfig,
     getStylesConfig,
   } from '../angular-cli-files/models/webpack-configs';
   import { readTsconfig } from '../angular-cli-files/utilities/read-tsconfig';
   import { statsErrorsToString, statsWarningsToString } from '../angular-cli-files/utilities/stats';
   import { Schema as BrowserBuilderOptions } from '../browser/schema';
   import { assertCompatibleAngularVersion } from '../utils/version';
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.file_path: packages/angular_devkit/build_angular/src/extract-i18n/index.ts
hunk.type: replace
file: /**
  * @license
  * Copyright Google Inc. All Rights Reserved.
  *
  * Use of this source code is governed by an MIT-style license that can be
  * found in the LICENSE file at https://angular.io/license
  */
  import { strings } from '@angular-devkit/core';
  import {
    Rule,
    Tree,
    apply,
    applyTemplates,
    chain,
    filter,
    mergeWith,
    move,
    noop,
    url,
  } from '@angular-devkit/schematics';
  import { applyLintFix } from '../utility/lint-fix';
  import { parseName } from '../utility/parse-name';
  import { createDefaultPath } from '../utility/workspace';
  import { Schema as ClassOptions } from './schema';
  
  export default function (options: ClassOptions): Rule {
    return async (host: Tree) => {
      if (options.path === undefined) {
        options.path = await createDefaultPath(host, options.project as string);
      }
  
      options.type = !!options.type ? `.${options.type}` : '';
  
      const parsedPath = parseName(options.path, options.name);
      options.name = parsedPath.name;
      options.path = parsedPath.path;
  
      // todo remove these when we remove the deprecations
      options.skipTests = options.skipTests || !options.spec;
  
      const templateSource = apply(url('./files'), [
        options.skipTests ? filter(path => !path.endsWith('.spec.ts.template')) : noop(),
        applyTemplates({
          ...strings,
          ...options,
        }),
        move(parsedPath.path),
      ]);
  
      return chain([
        mergeWith(templateSource),
        options.lintFix ? applyLintFix(options.path) : noop(),
      ]);
    };
  }
  