lxf-cli
Version:
### 安装
23 lines (22 loc) • 904 B
JavaScript
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var utils_1 = require("../utils");
var shell = __importStar(require("shelljs"));
var path = __importStar(require("path"));
var template_repo_1 = __importDefault(require("../config/template-repo"));
var cwd = process.cwd();
function serverPrompt(name) {
shell.cd(cwd);
utils_1.cloneRepo(template_repo_1.default.koa2, path.resolve(cwd, name));
}
exports.default = serverPrompt;
;