Init: Create & Init ms Project...

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-09-07 12:23:15 +08:00
commit 05bf312076
64 changed files with 2027 additions and 0 deletions

View File

@ -0,0 +1,25 @@
import { injectable, postConstruct } from "inversify";
import { getPluginMetadata } from './utils'
export namespace interfaces {
@injectable()
export abstract class Plugin {
public description: PluginMetadata;
protected logger: Console;
@postConstruct()
private init() {
this.logger = global.console;
}
public load() { }
public enable() { }
public disable() { }
}
export interface PluginMetadata {
name: string;
version: string;
author: string | string[];
target?: any;
}
}