UNPKG

1.36 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 { Tree } from '@angular-devkit/schematics';
9import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
10import * as ts from 'typescript';
11import { WorkspaceProject, WorkspaceSchema } from '@schematics/angular/utility/workspace-models';
12import { JsonArray, JsonObject, workspaces } from '@angular-devkit/core';
13export declare function getProjectTargetOptions(project: workspaces.ProjectDefinition, buildTarget: string): Record<string, string | number | boolean | JsonArray | JsonObject>;
14export declare function addPackageToPackageJson(host: Tree, pkg: string, version: string): Tree;
15export declare function createTestApp(runner: SchematicTestRunner, appOptions?: {}): Promise<UnitTestTree>;
16export declare function removePackageJsonDependency(tree: Tree, dependencyName: string): void;
17export declare function addModuleImportToRootModule(host: Tree, moduleName: string, src: string, project: workspaces.ProjectDefinition): void;
18export declare function getSourceFile(host: Tree, path: string): ts.SourceFile;
19export declare function getProjectFromWorkSpace(workspace: WorkspaceSchema, projectName?: string): WorkspaceProject;