diff --git a/packages/core/pipeline/src/plugin/test/echo-plugin.ts b/packages/core/pipeline/src/plugin/test/echo-plugin.ts deleted file mode 100644 index 539e4b71..00000000 --- a/packages/core/pipeline/src/plugin/test/echo-plugin.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ITaskPlugin } from "../api.js"; -import { IsTaskPlugin, TaskInput } from "../decorator.js"; - -@IsTaskPlugin({ - name: "EchoPlugin", - title: "测试插件", - desc: "test", -}) -export class EchoPlugin implements ITaskPlugin { - @TaskInput({ - title: "测试属性", - component: { - name: "text", - }, - }) - test?: string; - - onInstance(): Promise { - throw new Error("Method not implemented."); - } - - async execute(): Promise { - return Promise.resolve(undefined); - } -} diff --git a/packages/core/pipeline/test/echo-plugin.ts b/packages/core/pipeline/test/echo-plugin.ts deleted file mode 100644 index da77790d..00000000 --- a/packages/core/pipeline/test/echo-plugin.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Autowire, IsTaskPlugin, ITaskPlugin, TaskInput, TaskOutput } from "../src"; - -@IsTaskPlugin({ - name: "EchoPlugin", - title: "测试插件【echo】", -}) -export class EchoPlugin implements ITaskPlugin { - @TaskInput({ - title: "cert", - component: { - name: "pi-output-selector", - }, - helper: "输出选择", - }) - cert!: any; - - @TaskOutput({ - title: "cert info", - }) - certInfo!: any; - - // eslint-disable-next-line @typescript-eslint/no-empty-function - async onInstance(): Promise {} - async execute(): Promise { - console.log("input :cert", this.cert); - } -}