qcobjects-cli
Version:
qcobjects cli command line tool
8 lines (7 loc) • 2.63 kB
Source Map (JSON)
{
"version": 3,
"sources": ["../../src/qcobjects-http2-server.ts"],
"sourcesContent": ["#!/usr/bin/env node\n/**\n * QCObjects CLI 2.4.x\n * ________________\n *\n * Author: Jean Machuca <correojean@gmail.com>\n *\n * Cross Browser Javascript Framework for MVC Patterns\n * QuickCorp/QCObjects is licensed under the\n * GNU Lesser General Public License v3.0\n * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)\n *\n * Permissions of this copyleft license are conditioned on making available\n * complete source code of licensed works and modifications under the same\n * license or the GNU GPLv3. Copyright and license notices must be preserved.\n * Contributors provide an express grant of patent rights. However, a larger\n * work using the licensed work through interfaces provided by the licensed\n * work may be distributed under different terms and without source code for\n * the larger work.\n *\n * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>\n *\n * Everyone is permitted to copy and distribute verbatim copies of this\n * license document, but changing it is not allowed.\n*/\n/*eslint no-unused-vars: \"off\"*/\n/*eslint no-redeclare: \"off\"*/\n/*eslint no-empty: \"off\"*/\n/*eslint strict: \"off\"*/\n/*eslint no-mixed-operators: \"off\"*/\n/*eslint no-undef: \"off\"*/\n\nimport \"./defaultsettings\";\nimport {HTTPServer} from \"./main-http-server\";\nimport {HTTP2Server} from \"./main-http2-server\";\n\n(async () => {\n \"use strict\";\n const path = await import(\"path\");\n const absolutePath = path.resolve(__dirname, \"./\");\n\n await import(\"qcobjects\");\n const { CONFIG, InheritClass, New, logger } = await import(\"qcobjects\");\n\n\n class Main extends InheritClass {\n constructor() {\n super();\n\n const _ServerClass_ = (CONFIG.get(\"useLegacyHTTP\", false)) ? (HTTPServer) : (HTTP2Server);\n const app = New(_ServerClass_);\n app.start();\n\n logger.debug(\"initialized\");\n\n }\n\n }\n\n const __main__ = new Main();\n})()\n.catch(e => console.error(e));"],
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,6BAAO;AACP,8BAAyB;AACzB,+BAA0B;AAAA,CAEzB,YAAY;AACX;AACA,QAAM,OAAO,MAAM,OAAO,MAAM;AAChC,QAAM,eAAe,KAAK,QAAQ,WAAW,IAAI;AAEjD,QAAM,OAAO,WAAW;AACxB,QAAM,EAAE,QAAQ,cAAc,KAAK,OAAO,IAAI,MAAM,OAAO,WAAW;AAAA,EAGtE,MAAM,aAAa,aAAa;AAAA,IA7ClC,OA6CkC;AAAA;AAAA;AAAA,IAC9B,cAAc;AACZ,YAAM;AAEN,YAAM,gBAAiB,OAAO,IAAI,iBAAiB,KAAK,IAAM,qCAAe;AAC7E,YAAM,MAAM,IAAI,aAAa;AAC7B,UAAI,MAAM;AAEV,aAAO,MAAM,aAAa;AAAA,IAE5B;AAAA,EAEF;AAEA,QAAM,WAAW,IAAI,KAAK;AAC5B,GAAG,EACF,MAAM,OAAK,QAAQ,MAAM,CAAC,CAAC;",
"names": []
}