mirror of https://github.com/jkjoy/sunpeiwen.git
20 lines
749 B
JavaScript
20 lines
749 B
JavaScript
"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"));
|