feat: add task module
test / test (push) Successful in 2m13s

This commit is contained in:
2026-11-11 21:34:11 +03:00
parent 0a355ee680
commit 6940c65b88
34 changed files with 278 additions and 234 deletions
+22
View File
@@ -0,0 +1,22 @@
import type { TaskFunction } from "gulp";
import type { Config } from "../core/type";
export interface TaskCompiler {
config: Config;
debug?: boolean;
compile(): Iterable<TaskDef>;
}
export type TaskDef = readonly [string, TaskFunction] | readonly [string, TaskFunction, boolean];
export abstract class TaskCompilerImpl implements TaskCompiler {
constructor(
public config: Config,
public debug?: boolean,
) {}
abstract compile(): Iterable<TaskDef>;
}
export type TaskCompilerType = new (config: Config, debug?: boolean) => TaskCompiler;