UNPKG

@topgroup/diginext

Version:

A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.

33 lines (32 loc) 2.5 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.printInformation = void 0; const chalk_1 = __importDefault(require("chalk")); const config_1 = require("../../config/config"); function printInformation(finalConfig) { var _a, _b, _c, _d; const { buildServerUrl } = (0, config_1.getCliConfig)(); console.log(chalk_1.default.yellow("-----------------------------------------------------------")); console.log(chalk_1.default.yellow(" Congratulations! You are all set. Happy coding!")); console.log(chalk_1.default.yellow("-----------------------------------------------------------")); if ((_a = finalConfig.git) === null || _a === void 0 ? void 0 : _a.repoURL) console.log(chalk_1.default.green.bold("Repo URL : ") + chalk_1.default.cyan(finalConfig.git.repoURL)); if ((_b = finalConfig.git) === null || _b === void 0 ? void 0 : _b.repoSSH) console.log(chalk_1.default.green.bold("Remote SSH : ") + chalk_1.default.cyan(finalConfig.git.repoSSH)); console.log(chalk_1.default.green.bold("Framework : ") + chalk_1.default.cyan((_c = finalConfig.framework) === null || _c === void 0 ? void 0 : _c.name)); console.log(chalk_1.default.green.bold("Version : ") + chalk_1.default.cyan((_d = finalConfig.framework) === null || _d === void 0 ? void 0 : _d.version)); // Deploy instruction: console.log(chalk_1.default.yellow("-----------------------------------------------------------")); console.log(chalk_1.default.green.bold("To deploy DEV : ") + chalk_1.default.cyan(`dx up`)); console.log(chalk_1.default.green.bold("To deploy PROD : ") + chalk_1.default.cyan(`dx up --prod`)); console.log(chalk_1.default.green(" - Use flag " + chalk_1.default.cyan("--debug") + " if you want to see the build progress")); console.log(chalk_1.default.green(" - Preview & roll out the deployment at: ") + chalk_1.default.cyan(buildServerUrl)); console.log(chalk_1.default.yellow("-----------------------------------------------------------")); console.log(chalk_1.default.green("More instruction, type: ") + chalk_1.default.cyan(`dx --help`)); console.log(chalk_1.default.green("HAVE FUN!")); console.log(chalk_1.default.yellow("-----------------------------------------------------------")); } exports.printInformation = printInformation;