feat: add plugins packages and add Test Plugin

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-09-10 17:22:56 +08:00
parent 6d7516e2d9
commit cbe87cc378
5 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1,14 @@
import { plugin, interfaces } from '@ms/plugin'
@plugin({ name: 'Test', version: '1.0.0', author: 'MiaoWoo' })
export class Test extends interfaces.Plugin {
load() {
this.logger.log('');
}
enable() {
throw new Error("Method not implemented.");
}
disable() {
throw new Error("Method not implemented.");
}
}