2023-10-03 11:14:36 +08:00
|
|
|
"use strict";
|
|
|
|
function __export(m) {
|
|
|
|
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
|
|
}
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const chalk_1 = require("chalk");
|
|
|
|
const sftpSync_1 = require("./lib/sftpSync");
|
|
|
|
function deploy(config, options) {
|
|
|
|
const deployer = new sftpSync_1.SftpSync(config, options);
|
|
|
|
console.log(chalk_1.default.green(`* Deploying to host ${config.host}`));
|
|
|
|
console.log(chalk_1.default.grey('* local dir = ') + deployer.localRoot);
|
|
|
|
console.log(chalk_1.default.grey('* remote dir = ') + deployer.remoteRoot);
|
|
|
|
console.log('');
|
|
|
|
return deployer.sync();
|
|
|
|
}
|
|
|
|
exports.deploy = deploy;
|
|
|
|
;
|
|
|
|
exports.default = deploy;
|
|
|
|
__export(require("./lib/sftpSync"));
|