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