UNPKG

1.32 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC 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 */
8import { json, workspaces } from '@angular-devkit/core';
9import { Rule, Tree } from '@angular-devkit/schematics';
10export declare function updateWorkspace(updater: (workspace: workspaces.WorkspaceDefinition) => void | Rule | PromiseLike<void | Rule>): Rule;
11export declare function updateWorkspace(workspace: workspaces.WorkspaceDefinition): Rule;
12export 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 */
17export declare function buildDefaultPath(project: workspaces.ProjectDefinition): string;
18export declare function createDefaultPath(tree: Tree, projectName: string): Promise<string>;
19export declare function allWorkspaceTargets(workspace: workspaces.WorkspaceDefinition): Iterable<[string, workspaces.TargetDefinition, string, workspaces.ProjectDefinition]>;
20export declare function allTargetOptions(target: workspaces.TargetDefinition, skipBaseOptions?: boolean): Iterable<[string | undefined, Record<string, json.JsonValue | undefined>]>;