mirror of https://github.com/certd/certd
chore: 恢复加载插件方式为注解方式
parent
a5cb8761a5
commit
65255dbb50
|
@ -94,5 +94,3 @@ for (const key in modules) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
process.exit();
|
process.exit();
|
||||||
|
|
||||||
process.exit()
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
"lint": "mwts check",
|
"lint": "mwts check",
|
||||||
"lint:fix": "mwts fix",
|
"lint:fix": "mwts fix",
|
||||||
"ci": "npm run cov",
|
"ci": "npm run cov",
|
||||||
"build": "npm run export-metadata && mwtsc --cleanOutDir --skipLibCheck",
|
"build": "mwtsc --cleanOutDir --skipLibCheck",
|
||||||
"export-metadata": "node export-plugin-yaml.js",
|
"export-metadata": "node export-plugin-yaml.js",
|
||||||
"dev-build": "echo 1",
|
"dev-build": "echo 1",
|
||||||
"build-on-docker": "node ./before-build.js && npm run build",
|
"build-on-docker": "node ./before-build.js && npm run build",
|
||||||
|
|
|
@ -12,7 +12,7 @@ export class AutoBLoadPlugins {
|
||||||
@Init()
|
@Init()
|
||||||
async init() {
|
async init() {
|
||||||
logger.info('加载插件开始');
|
logger.info('加载插件开始');
|
||||||
await this.pluginService.registerFromLocal("./metadata")
|
// await this.pluginService.registerFromLocal("./metadata")
|
||||||
await import("../../plugins/index.js")
|
await import("../../plugins/index.js")
|
||||||
await this.pluginService.registerFromDb()
|
await this.pluginService.registerFromDb()
|
||||||
logger.info('加载插件完成');
|
logger.info('加载插件完成');
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
export * from '@certd/plugin-cert';
|
export * from '@certd/plugin-cert';
|
||||||
export * from '@certd/plugin-plus';
|
export * from '@certd/plugin-plus';
|
||||||
// export * from './plugin-aliyun/index.js';
|
export * from './plugin-aliyun/index.js';
|
||||||
// export * from './plugin-tencent/index.js';
|
export * from './plugin-tencent/index.js';
|
||||||
// export * from './plugin-host/index.js';
|
export * from './plugin-host/index.js';
|
||||||
// export * from './plugin-huawei/index.js';
|
export * from './plugin-huawei/index.js';
|
||||||
// export * from './plugin-demo/index.js';
|
export * from './plugin-demo/index.js';
|
||||||
// export * from './plugin-other/index.js';
|
export * from './plugin-other/index.js';
|
||||||
// export * from './plugin-west/index.js';
|
export * from './plugin-west/index.js';
|
||||||
// export * from './plugin-doge/index.js';
|
export * from './plugin-doge/index.js';
|
||||||
// export * from './plugin-qiniu/index.js';
|
export * from './plugin-qiniu/index.js';
|
||||||
// export * from './plugin-woai/index.js';
|
export * from './plugin-woai/index.js';
|
||||||
// export * from './plugin-cachefly/index.js';
|
export * from './plugin-cachefly/index.js';
|
||||||
// export * from './plugin-gcore/index.js';
|
export * from './plugin-gcore/index.js';
|
||||||
// export * from './plugin-qnap/index.js';
|
export * from './plugin-qnap/index.js';
|
||||||
// export * from './plugin-aws/index.js';
|
export * from './plugin-aws/index.js';
|
||||||
// export * from './plugin-dnsla/index.js';
|
export * from './plugin-dnsla/index.js';
|
||||||
// export * from './plugin-upyun/index.js';
|
export * from './plugin-upyun/index.js';
|
||||||
// export * from './plugin-volcengine/index.js'
|
export * from './plugin-volcengine/index.js'
|
||||||
// export * from './plugin-jdcloud/index.js'
|
export * from './plugin-jdcloud/index.js'
|
||||||
// export * from './plugin-51dns/index.js'
|
export * from './plugin-51dns/index.js'
|
||||||
|
|
Loading…
Reference in New Issue