@cypress/schematic
Version:
Official Cypress schematic for the Angular CLI
23 lines (22 loc) • 796 B
TypeScript
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;