t-comm
Version:
专业、稳定、纯粹的工具库
24 lines (23 loc) • 648 B
TypeScript
/**
* 打包并上传到服务器
* @param {object} options 配置
* @param {string} options.hostName 服务器名称
* @param {string} options.hostPwd 服务器密码
* @param {string} [options.root] 项目根目录
* @param {string} [options.bundleName] 打包文件名称
* @example
*
* await buildAndUpload({
* hostName: '9.9.9.9',
* hostPwd: 'xxxx',
* bundleName: 'cron-job-svr',
* });
*
*/
export declare function buildAndUpload({ root, bundleName, hostName, hostPwd, hostTargetDir, }: {
root?: string;
bundleName?: string;
hostName: string;
hostPwd: string;
hostTargetDir: string;
}): Promise<void>;