UNPKG

long-git-cli

Version:

A CLI tool for Git tag management.

95 lines 3.18 kB
"use strict"; /** * 自动化部署功能的常量定义 */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || (function () { var ownKeys = function(o) { ownKeys = Object.getOwnPropertyNames || function (o) { var ar = []; for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; return ar; }; return ownKeys(o); }; return function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); __setModuleDefault(result, mod); return result; }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.BCRYPT_ROUNDS = exports.DEFAULT_TAG_FORMATS = exports.JENKINS_INSTANCE_TYPES = exports.SUPPORTED_ENVIRONMENTS = exports.JENKINS_TIMEOUT = exports.JENKINS_POLL_INTERVAL = exports.BITBUCKET_TIMEOUT = exports.BITBUCKET_POLL_INTERVAL = exports.BITBUCKET_API_BASE_URL = exports.WEB_UI_HOST = exports.WEB_UI_PORT = exports.CONFIG_VERSION = exports.CONFIG_FILE = exports.CONFIG_DIR = void 0; const os = __importStar(require("os")); const path = __importStar(require("path")); /** * 配置文件存储路径 */ exports.CONFIG_DIR = path.join(os.homedir(), ".long-cli"); exports.CONFIG_FILE = path.join(exports.CONFIG_DIR, "config.json"); /** * 配置版本 */ exports.CONFIG_VERSION = "1.0.0"; /** * Web UI 服务器配置 */ exports.WEB_UI_PORT = 3456; exports.WEB_UI_HOST = "localhost"; /** * Bitbucket API 配置 */ exports.BITBUCKET_API_BASE_URL = "https://api.bitbucket.org/2.0"; exports.BITBUCKET_POLL_INTERVAL = 15000; // 15 秒 exports.BITBUCKET_TIMEOUT = 30 * 60 * 1000; // 30 分钟 /** * Jenkins API 配置 */ exports.JENKINS_POLL_INTERVAL = 10000; // 10 秒 exports.JENKINS_TIMEOUT = 60 * 60 * 1000; // 60 分钟 /** * 支持的环境列表 */ exports.SUPPORTED_ENVIRONMENTS = [ "test-01", "test-02", "test-03", "test-04", "uat", ]; /** * 支持的 Jenkins 实例类型 */ exports.JENKINS_INSTANCE_TYPES = ["app", "pcalpha"]; /** * 默认 Tag 格式 */ exports.DEFAULT_TAG_FORMATS = { "test-01": "test-v00.00.0000", "test-02": "test-v00.00.0000", "test-03": "test-v00.00.0000", "test-04": "test-v00.00.0000", uat: "uat-v00.00.0000", }; /** * bcrypt 加密轮数 */ exports.BCRYPT_ROUNDS = 10; //# sourceMappingURL=constants.js.map