UNPKG

webcm

Version:

Demonstrative implementation of a web-based manager for utilising Managed Components

30 lines (29 loc) 977 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const yargs_1 = __importDefault(require("yargs/yargs")); const server_1 = require("./server"); const crypto_1 = __importDefault(require("crypto")); globalThis.crypto = crypto_1.default.webcrypto; const cliArgs = (0, yargs_1.default)(process.argv.slice(2)) .options({ configPath: { alias: 'c', type: 'string', default: './webcm.config.ts', describe: 'path to your Managed Components config', }, componentsFolderPath: { alias: 'mc', type: 'string', default: './components', describe: 'path to Managed Components folder', }, }) .parseSync(); (0, server_1.startServerFromConfig)({ configPath: cliArgs.configPath, componentsFolderPath: cliArgs.componentsFolderPath, });