workspace.d.ts 948 B

123456789101112131415161718
  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 { workspaces } from '@angular-devkit/core';
  9. import { Rule, Tree } from '@angular-devkit/schematics';
  10. export declare function updateWorkspace(updater: (workspace: workspaces.WorkspaceDefinition) => void | PromiseLike<void>): Rule;
  11. export declare function updateWorkspace(workspace: workspaces.WorkspaceDefinition): Rule;
  12. export declare function getWorkspace(tree: Tree, path?: string): Promise<workspaces.WorkspaceDefinition>;
  13. /**
  14. * Build a default project path for generating.
  15. * @param project The project which will have its default path generated.
  16. */
  17. export declare function buildDefaultPath(project: workspaces.ProjectDefinition): string;
  18. export declare function createDefaultPath(tree: Tree, projectName: string): Promise<string>;