UNPKG

qcobjects-cli

Version:

qcobjects cli command line tool

45 lines • 1.6 kB
#!/usr/bin/env node "use strict"; /** * QCObjects Framework CLI * ________________ * * Author: Jean Machuca <correojean@gmail.com> * * Cross Browser Javascript Framework for MVC Patterns * QCObjects is licensed under the MIT License * [LICENSE] (https://github.com/QCObjects/qcobjects-cli/blob/main/LICENSE.txt) * * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com> * * Everyone is permitted to copy and distribute verbatim copies of this * license document, but changing it is not allowed. */ /*eslint no-unused-vars: "off"*/ /*eslint no-redeclare: "off"*/ /*eslint no-empty: "off"*/ /*eslint strict: "off"*/ /*eslint no-mixed-operators: "off"*/ /*eslint no-undef: "off"*/ Object.defineProperty(exports, "__esModule", { value: true }); require("./defaultsettings"); const main_http_server_1 = require("./main-http-server"); const main_http2_server_1 = require("./main-http2-server"); const qcobjects_1 = require("qcobjects"); (async () => { "use strict"; const path = await import("path"); const absolutePath = path.resolve(__dirname, "./"); class Main extends qcobjects_1.InheritClass { constructor() { super(); const _ServerClass_ = (qcobjects_1.CONFIG.get("useLegacyHTTP", false)) ? (main_http_server_1.HTTPServer) : (main_http2_server_1.HTTP2Server); const app = (0, qcobjects_1.New)(_ServerClass_); app.start(); qcobjects_1.logger.debug("initialized"); } } const __main__ = new Main(); })() .catch(e => console.error(e)); //# sourceMappingURL=qcobjects-http2-server.js.map