Skip to main content
Module

x/drake/mod.ts>Task

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

Drake task.

Constructors

new
Task(
name: string,
desc: string,
prereqs: string[],
action?: Action,
)

Create a new task. Task name and prerequisite names are normalized.

Properties

optional
action: Action
optional
cache: TaskCache
desc: string
name: string

Unique task name or file path

prereqs: string[]

Methods

isOutOfDate(): boolean

Return true if:

  • The target file does not exist.
  • The target file or any of the prerequisite files have changed since the task was last executed successfully.
  • The Drake version or the operating system has changed since the task was last executed successfully.

Throw error is one or more prerequisite files are missing.

updateCache(): void

Static Methods

private
fileInfo(path: string): FileCache