@lspriv/plugin-taro
Version:
小程序日历组件Taro插件
32 lines (31 loc) • 1.42 kB
TypeScript
import { type ExecSyncOptions } from 'child_process';
export declare const isMac: boolean;
export declare const isWin: boolean;
export declare const WX_CALENDAR_PKG_NAME = "@lspriv/wx-calendar";
export declare const PKG_LATEST_VERSION = "latest";
export interface PkgJson {
name: string;
version: string;
author: string;
description: string;
dependencies: Record<string, string>;
devDependencies: Record<string, string>;
}
export declare const getPrjConfig: () => Record<string, any>;
export declare const getPkgConfig: () => PkgJson;
export interface CliOptions extends ExecSyncOptions {
cli?: string;
withPrj?: boolean;
}
export declare const createCli: (prjPath?: string) => (command: any, options?: CliOptions) => any;
export declare const formatJson: (json: Record<string, any>) => string;
export declare const PKG_INSTALLER: {
readonly cnpm: (path: string, pkg?: string, args?: string[]) => void;
readonly pnpm: (path: string, pkg?: string, args?: string[]) => void;
readonly npm: (path: string, pkg?: string, args?: string[]) => void;
};
export declare const getDefaultPmInstaller: () => (typeof PKG_INSTALLER)[keyof typeof PKG_INSTALLER];
export declare const removeComments: (content: string) => string;
export declare const TPL_COMP_CONTENT = "Component({})";
export declare const TPL_COMP_WXML = "<view></view>";
export declare const createCompJson: () => string;