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
+22
View File
@@ -0,0 +1,22 @@
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;