/** * Source-defined tasks for Veryfront projects. * * @module task * * @example Define a task in tasks/sync-data.ts * ```ts * import type { TaskContext } from "veryfront/task"; * * export default { * name: "Sync external data", * async run(ctx: TaskContext) { * return { synced: 42 }; * }, * }; * ``` */ import "../../_dnt.polyfills.js"; export type { TaskContext, TaskDefinition } from "./types.js"; export { isTaskDefinition } from "./types.js"; export { deriveTaskId, discoverTasks, findTaskById } from "./discovery.js"; export type { DiscoveredTask, TaskDiscoveryOptions, TaskDiscoveryResult } from "./discovery.js"; export { runTask } from "./runner.js"; export type { RunnableTask, RunTaskOptions, TaskRunResult } from "./runner.js"; export { discoverProjectTaskRuntime, findProjectRuntimeTask, formatProjectRuntimeDiscoveryErrors, listProjectRuntimeTasks, } from "./project-runtime.js"; export type { ProjectTaskRuntimeDiscovery, ProjectTaskRuntimeOptions } from "./project-runtime.js"; //# sourceMappingURL=index.d.ts.map