///
///
///
///
export interface IInstance {
location: string;
folder: string;
}
export declare function resolve(options?: {
which?: boolean;
}): Promise;
export interface SpecExpectation {
matcherName: string;
message: string;
stack: string;
passed: boolean;
}
export interface SpecResult {
fullName: string;
description: string;
failedExpectations: SpecExpectation[];
passedExpectations: SpecExpectation[];
}
export declare function spawnTest(specFile: string): Promise<{}>;
export declare function test(from_path?: string): Promise;
export declare function init(folder: string): void;
export declare function clean(from_path?: string): Promise;
export declare type EntryPointKind = "web" | "node" | "electron" | "test-web" | "test-node";
export declare class EntryPoint {
project: Project;
kind: EntryPointKind;
file_info: IFileInfo;
build_config: IBuildConfig;
constructor(project: Project, kind: EntryPointKind, file_info: IFileInfo, build_config: IBuildConfig);
}
export interface IProjectReference {
project: Project;
version: string;
}
export declare type DependencyMap = {
[name: string]: IProjectReference[];
};
export interface IBuildConfig {
kind: EntryPointKind;
extension: string;
config: (project: Project, entry_point: EntryPoint, entry_points: EntryPoint[]) => {
webpack_config: any;
};
}
export declare class Project {
package_folder: string;
name: string;
version: string;
package_json: any;
package_path: any;
constructor(package_folder: string);
getLastModified(workspace?: Workspace): Promise;
getLastBuilt(): Promise;
getFailedTests(): boolean;
}
export declare class Workspace {
projects: Project[];
dependencies: DependencyMap;
private Workspace();
static create(from_path: string): Promise;
getAllDependencies(project: Project, except?: {
[name: string]: boolean;
}): IProjectReference[];
getAllDependents(project: Project): Project[];
getProject: (name: string) => Project;
getEntryPoints(project?: Project): Promise;
}
export declare function getWorkspace(from_path: string): Promise;
export interface IFileInfo {
file: string;
stat: any;
}
export declare function watch(from_path?: string): Promise;
export declare function build(from_path?: string): Promise;
export declare function testWeb(): Promise<{}>;