design-angular-kit
Version:
Un toolkit Angular conforme alle linee guida di design per i servizi web della PA
15 lines (14 loc) • 668 B
TypeScript
import { Tree } from '@angular-devkit/schematics';
/** Get a SemVerObject given a semver string */
export declare function toSemVerObject(versionString: string): {
semVer: string | undefined;
major: string;
minor: string;
patch: string;
prerelease: string;
buildmetadata: string;
};
/** Adds a package to the package.json in the given host tree. */
export declare function addPackageToPackageJson(host: Tree, pkg: string, version: string): Tree;
/** Gets the version of the specified package by looking at the package.json in the given tree. */
export declare function getPackageVersionFromPackageJson(tree: Tree, name: string): string | null;