Skip to main content
Module

x/drake/mod.ts>task

Drake is a make-like task runner for Deno.
Go to Latest
function task
import { task } from "https://deno.land/x/drake@v1.6.0/mod.ts";

Create and register a task. Returns the task object.

  • name is a unique task name.
  • prereqs is an array of prerequisite task names. Prerequisites can be normal task names, file task names, file paths or globs (wildcards).
  • action is an optional function that is run if the task is selected for execution (type Action = (this: Task) => any;).
  • To fetch an existing task omit both the prereqs and action parameters.

Parameters

name: string
optional
prereqs: string[]
optional
action: Action