UNPKG

@cypress/schematic

Version:
23 lines (22 loc) 796 B
import { Tree } from '@angular-devkit/schematics'; import { Schema } from '../ng-generate/cypress-test/schema'; export interface NodePackage { name: string; version: string; } export declare function getAngularVersion(tree: Tree): number; /** * Attempt to retrieve the latest package version from NPM * Return an optional "latest" version in case of error * @param packageName */ export declare function getLatestNodeVersion(packageName: string): Promise<NodePackage>; export declare function getDirectoriesAndCreateSpecs({ appPath, tree }: { appPath: string; tree: Tree; }): void; export declare function createTemplate({ templatePath, options }: { templatePath: string; options: Schema; }): any; export declare function getAngularJsonValue(tree: Tree): any;