fix(core): update
This commit is contained in:
@ -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();
|
||||
|
@ -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
15
ts/tsdoc.logging.ts
Normal 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());
|
@ -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
|
||||
|
Reference in New Issue
Block a user