fix(core): update

This commit is contained in:
2019-05-14 08:50:50 +02:00
parent 33caf4ebea
commit f92f63337d
10 changed files with 203 additions and 89 deletions

View File

@ -1,4 +1,6 @@
import * as early from '@pushrocks/early';
early.start('tsdoc');
import * as plugins from './tsdoc.plugins';
import * as cli from './tsdoc.cli';
cli.run();
early.stop();
cli.run();

View File

@ -1,16 +1,15 @@
import * as plugins from './tsdoc.plugins';
import { logger } from './tsdoc.logging';
export const run = async () => {
const tsdocCli = new plugins.smartcli.Smartcli();
tsdocCli.addCommand('typedoc').subscribe(async argvArg => {
});
tsdocCli.addCommand('typedoc').subscribe(async argvArg => {});
tsdocCli.addCommand('mkdocs').subscribe(async argvArg => {
});
tsdocCli.addCommand('mkdocs').subscribe(async argvArg => {});
tsdocCli.standardTask().subscribe(async argvArg => {
logger.log('warn', `Auto detecting environment!`);
});
})
}
tsdocCli.startParse();
};

15
ts/tsdoc.logging.ts Normal file
View File

@ -0,0 +1,15 @@
import * as plugins from './tsdoc.plugins';
export const logger = new plugins.smartlog.Smartlog({
logContext: {
company: 'Some Company',
companyunit: 'Some CompanyUnit',
containerName: 'Some Containername',
environment: 'local',
runtime: 'node',
zone: 'gitzone'
},
minimumLogLevel: 'silly'
});
logger.addLogDestination(new plugins.smartlogDestinationLocal.DestinationLocal());

View File

@ -1,8 +1,12 @@
// pushrocks scope
import * as smartcli from '@pushrocks/smartcli';
import * as smartlog from '@pushrocks/smartlog';
import * as smartlogDestinationLocal from '@pushrocks/smartlog-destination-local';
export {
smartcli
smartcli,
smartlog,
smartlogDestinationLocal
};
// third party scope