UNPKG

@coat/cli

Version:

TODO: See #3

17 lines (16 loc) 808 B
import { CoatContext } from "../types/coat-context"; import { CoatManifestTaskStrict } from "../types/coat-manifest-tasks"; /** * Filters and returns only tasks that should be run. * * Tasks can have a "shouldRun" function that will be called with * the context and previous task results if they are available. * * If tasks don't have a custom shouldRun function, they will only be run * if they haven't been run before. * * @param allTasks All tasks that should be checked whether they should be run * @param context The context of the current coat project * @param force Whether all tasks should run regardless of individual shouldRun results */ export declare function getTasksToRun(allTasks: CoatManifestTaskStrict[], context: CoatContext, force: boolean): Promise<CoatManifestTaskStrict[]>;