1 | import { TSCommands, PackageInfo } from './interfaces';
|
2 | export declare type ExecEnv = {
|
3 | [name: string]: string;
|
4 | };
|
5 | declare type ExecOpts = {
|
6 | cmd: string;
|
7 | args?: string[];
|
8 | cwd?: string;
|
9 | env?: ExecEnv;
|
10 | stdio?: 'inherit';
|
11 | timeout?: number;
|
12 | detached?: boolean;
|
13 | };
|
14 | export declare function exec(opts: ExecOpts, log?: boolean): Promise<string>;
|
15 | export declare function fork(opts: ExecOpts): Promise<void>;
|
16 | export declare function runTSScript(cmd: TSCommands, args: string[]): Promise<void>;
|
17 | export declare function build(pkgInfo?: PackageInfo): Promise<void>;
|
18 | export declare function setup(): Promise<void>;
|
19 | export declare function yarnRun(script: string, args?: string[], cwd?: string, env?: Record<string, string>, log?: boolean): Promise<void>;
|
20 | export declare function runJest(cwd: string, argsMap: ArgsMap, env?: ExecEnv, extraArgs?: string[], debug?: boolean): Promise<void>;
|
21 | export declare function dockerPull(image: string, timeout?: number): Promise<void>;
|
22 | export declare function dockerStop(name: string): Promise<void>;
|
23 | export declare function dockerTag(from: string, to: string): Promise<void>;
|
24 | export declare function getContainerInfo(name: string): Promise<any>;
|
25 | export declare function dockerNetworkExists(name: string): Promise<boolean>;
|
26 | export declare function remoteDockerImageExists(image: string): Promise<boolean>;
|
27 | export declare type DockerRunOptions = {
|
28 | name: string;
|
29 | image: string;
|
30 | ports?: (number | string)[];
|
31 | tmpfs?: string[];
|
32 | env?: ExecEnv;
|
33 | network?: string;
|
34 | };
|
35 | export declare function dockerRun(opt: DockerRunOptions, tag?: string, debug?: boolean): Promise<() => void>;
|
36 | export declare function dockerContainerReady(name: string, upFor: number): Promise<boolean>;
|
37 | export declare function dockerBuild(tag: string, cacheFrom?: string[], target?: string, buildArg?: string): Promise<void>;
|
38 | export declare function dockerPush(image: string): Promise<void>;
|
39 | export declare function pgrep(name: string): Promise<string>;
|
40 | export declare function getCommitHash(): Promise<string>;
|
41 | export declare function gitDiff(files?: string[]): Promise<void>;
|
42 | export declare function getChangedFiles(...files: string[]): Promise<string[]>;
|
43 | export declare type ArgsMap = {
|
44 | [key: string]: string | string[];
|
45 | };
|
46 | export declare function mapToArgs(input: ArgsMap): string[];
|
47 | export declare function yarnPublish(pkgInfo: PackageInfo, tag?: string, registry?: string): Promise<void>;
|
48 | export {};
|
49 |
|
\ | No newline at end of file |