utils.d.ts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /**
  2. * @license
  3. * Copyright Google Inc. All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. import { Architect, BuilderOutput, ScheduleOptions, Target } from '@angular-devkit/architect';
  9. import { TestProjectHost, TestingArchitectHost } from '@angular-devkit/architect/testing';
  10. import { Path, experimental, json, virtualFs } from '@angular-devkit/core';
  11. export declare const ivyEnabled: boolean;
  12. export declare const workspaceRoot: Path;
  13. export declare const host: TestProjectHost;
  14. export declare const outputPath: Path;
  15. export declare const browserTargetSpec: {
  16. project: string;
  17. target: string;
  18. };
  19. export declare const devServerTargetSpec: {
  20. project: string;
  21. target: string;
  22. };
  23. export declare const extractI18nTargetSpec: {
  24. project: string;
  25. target: string;
  26. };
  27. export declare const karmaTargetSpec: {
  28. project: string;
  29. target: string;
  30. };
  31. export declare const tslintTargetSpec: {
  32. project: string;
  33. target: string;
  34. };
  35. export declare const protractorTargetSpec: {
  36. project: string;
  37. target: string;
  38. };
  39. export declare function createArchitect(workspaceRoot: Path): Promise<{
  40. workspace: experimental.workspace.Workspace;
  41. architectHost: TestingArchitectHost;
  42. architect: Architect;
  43. }>;
  44. export declare function browserBuild(architect: Architect, host: virtualFs.Host, target: Target, overrides?: json.JsonObject, scheduleOptions?: ScheduleOptions): Promise<{
  45. output: BuilderOutput;
  46. files: {
  47. [file: string]: Promise<string>;
  48. };
  49. }>;
  50. export declare const lazyModuleFiles: {
  51. [path: string]: string;
  52. };
  53. export declare const lazyModuleStringImport: {
  54. [path: string]: string;
  55. };
  56. export declare const lazyModuleFnImport: {
  57. [path: string]: string;
  58. };