UNPKG

@doku-dev/doku-fragment

Version:

A new Angular UI library that moving away from Bootstrap and built from scratch.

27 lines (26 loc) 1.33 kB
import { Tree } from '@angular-devkit/schematics'; import { ProjectDefinition, WorkspaceDefinition } from '@schematics/angular/utility'; /** * Get project from workspace by name or get directly if single project. * @param tree Host tree * @param projectName Project name from schema * @returns Project definition or undefined */ export declare function getActiveProject(workspace: WorkspaceDefinition, projectName?: string): Promise<ProjectDefinition | undefined>; /** * Get package version by looking at the package.json in the given tree */ export declare function getPackageVersionFromPackageJson(tree: Tree, name: string, includeDevDependencies?: boolean): string | null; /** * Get options for the build target of the given project */ export declare function getProjectTargetOptions(project: ProjectDefinition, buildTarget: string): Record<string, import("@angular-devkit/core").JsonValue | undefined>; /** * Gets a style file with the given extension in a project and returns its path. If no * extension is specified, it will return null. */ export declare function getProjectStyleFile(project: ProjectDefinition): string | null; /** * Adds a package to the package.json in the given tree */ export declare function addPackageToPackageJson(tree: Tree, pkg: string, version: string, devDependency?: boolean): Tree;