|
@ -4,8 +4,6 @@ |
|
|
|
|
|
|
|
|
'use strict'; |
|
|
'use strict'; |
|
|
|
|
|
|
|
|
const DTP_COMPONENT = { name: 'Sample App CLI', slug: 'webapp-cli' }; |
|
|
|
|
|
|
|
|
|
|
|
require('dotenv').config(); |
|
|
require('dotenv').config(); |
|
|
|
|
|
|
|
|
const path = require('path'); |
|
|
const path = require('path'); |
|
@ -22,10 +20,10 @@ const { |
|
|
module.rootPath = __dirname; |
|
|
module.rootPath = __dirname; |
|
|
module.pkg = require(path.join(module.rootPath, 'package.json')); |
|
|
module.pkg = require(path.join(module.rootPath, 'package.json')); |
|
|
module.config = { |
|
|
module.config = { |
|
|
component: DTP_COMPONENT, |
|
|
|
|
|
root: module.rootPath, |
|
|
root: module.rootPath, |
|
|
site: require(path.join(module.rootPath, 'config', 'site')), |
|
|
site: require(path.join(module.rootPath, 'config', 'site')), |
|
|
http: require(path.join(module.rootPath, 'config', 'http')), |
|
|
http: require(path.join(module.rootPath, 'config', 'http')), |
|
|
|
|
|
component: { logId: 'webapp-cli', index: 'webappCli', className: 'SampleAppCli' }, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
module.log = new SiteLog(module, module.config.component); |
|
|
module.log = new SiteLog(module, module.config.component); |
|
|