feat: add task module
test / test (push) Successful in 57s

This commit is contained in:
2026-11-10 15:33:01 +03:00
parent 4997fed725
commit 7de2bb81fc
33 changed files with 241 additions and 219 deletions
+4 -4
View File
@@ -5,16 +5,16 @@ import { tail } from "../../common/tail";
import { type Config, Platform } from "../../core/type";
import { Target } from "./target";
export type RunnerFactory = new (config: Config, debug: boolean) => Runner;
export type RunnerFactory = new (config: Config, debug?: boolean) => Runner;
export class Runner extends Target {
static factory: Record<string, RunnerFactory> = {};
public debug: boolean;
constructor(config: Config, platform: Platform, debug: boolean) {
constructor(config: Config, platform: Platform, debug?: boolean) {
super(config, platform);
this.debug = debug;
this.debug = debug || false;
}
log(stream: any) {
@@ -25,7 +25,7 @@ export class Runner extends Target {
Runner.factory[platform] = runner;
}
static new(config: Config, platform: string, debug: boolean): Runner {
static new(config: Config, platform: string, debug?: boolean): Runner {
return new Runner.factory[platform](config, debug);
}
}
+1 -1
View File
@@ -12,7 +12,7 @@ export class Target {
this.target = "target";
}
prepare(): Promise<any> {
setup(): Promise<any> {
return Promise.resolve();
}