"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Class which generates string content for main js file
*
* @export
* @class Index
*/
var Index = (function () {
function Index() {
}
/**
* Generate main js file string content
* @return {string} - generated content for index.js file
*/
Index.prototype.getIndex = function () {
return "const express = require('express');\nconst profile = require('./configs/index.js').getEnvBasedConfig();\nconst loadExpressConfig = require('./configs/express.js');\nconst router = require('./configs/router.js');\n\nlet app = express();\napp = loadExpressConfig(app);\n\napp.use('/', router);\n\napp.listen(profile.APP_PORT, () => {\n console.log('App started on port: ' + profile.APP_PORT);\n});";
};
return Index;
}());
exports.Index = Index;
exports.default = new Index();
|