UNPKG

1.53 kBTypeScriptView Raw
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 */
8import { JsonAstObject, JsonObject, json, workspaces } from '@angular-devkit/core';
9export declare const workspaceSchemaPath: string;
10export declare class AngularWorkspace {
11 private workspace;
12 readonly filePath: string;
13 readonly basePath: string;
14 constructor(workspace: workspaces.WorkspaceDefinition, filePath: string);
15 get extensions(): Record<string, json.JsonValue | undefined>;
16 get projects(): workspaces.ProjectDefinitionCollection;
17 getCli(): Record<string, any>;
18 getProjectCli(projectName: string): Record<string, any>;
19}
20export declare function getWorkspace(level?: 'local' | 'global'): Promise<AngularWorkspace | null>;
21export declare function createGlobalSettings(): string;
22export declare function getWorkspaceRaw(level?: 'local' | 'global'): [JsonAstObject | null, string | null];
23export declare function validateWorkspace(data: JsonObject): Promise<void>;
24export declare function getProjectByCwd(workspace: AngularWorkspace): string | null;
25export declare function getConfiguredPackageManager(): Promise<string | null>;
26export declare function migrateLegacyGlobalConfig(): boolean;
27export declare function getSchematicDefaults(collection: string, schematic: string, project?: string | null): Promise<{}>;
28export declare function isWarningEnabled(warning: string): Promise<boolean>;