UNPKG

venus-cli

Version:
28 lines (27 loc) 1.92 kB
import execa from 'execa'; export declare const cwd: () => any; export declare const requireModule: (packageName: string) => Promise<any>; export declare const isPackageInstalled: (packageName: string) => string; export declare const isVenusWebpackInstalled: () => string; export declare const isVenusMockInstalled: () => string; export declare const isVenusScriptsInstalled: () => string; export declare const isVenusMiniprogramInstalled: () => string; export declare const isVenusEnvInstalled: () => string; export declare const execaOpts: (opts: execa.CommonOptions<string>) => { cwd: any; localDir: any; preferLocal: any; } & execa.CommonOptions<string>; export declare const installPkg: (pkgs: string[]) => Promise<execa.ExecaReturnValue<string>>; export declare const webpackBuild: (module: string, sourcemap?: boolean) => Promise<execa.ExecaReturnValue<string>>; export declare const rollupBuild: (project?: string | undefined, uglify?: boolean, sourcemap?: boolean) => Promise<execa.ExecaReturnValue<string>>; export declare const wxappBuild: (project?: string | undefined, sourcemap?: boolean) => Promise<execa.ExecaReturnValue<string>>; export declare const wxappMpServe: () => Promise<execa.ExecaReturnValue<string>>; export declare const wxappMpBuild: (uglify?: boolean, sourcemap?: boolean) => Promise<execa.ExecaReturnValue<string>>; export declare const webpackServe: (module: string) => Promise<execa.ExecaReturnValue<string>>; export declare const venusTest: (testNamePattern: any) => Promise<execa.ExecaReturnValue<string>>; export declare const venusMock: () => Promise<execa.ExecaReturnValue<string>>; export declare const webpackStatic: () => Promise<execa.ExecaReturnValue<string>>; export declare const currentBranch: () => Promise<string>; export declare const lastedCommitId: () => Promise<string>; export declare const checkFileHasCommited: (fileName: string) => Promise<boolean>;