Files
gulp-haxetool/src/task/core.ts
T
shmyga 7de2bb81fc
test / test (push) Successful in 57s
feat: add task module
2026-11-10 15:33:01 +03:00

23 lines
507 B
TypeScript

import type { TaskFunction } from "gulp";
import type { Config } from "../core/type";
export type TaskBundle = Record<string, TaskFunction>;
export interface TaskCompiler {
config: Config;
debug?: boolean;
compile(): TaskBundle;
}
export abstract class TaskCompilerImpl implements TaskCompiler {
constructor(
public config: Config,
public debug?: boolean,
) {}
abstract compile(): TaskBundle;
}
export type TaskCompilerType = new (config: Config, debug?: boolean) => TaskCompiler;