Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/drake/examples/dynamic-tasks.ts

Drake is a make-like task runner for Deno.
Go to Latest
File
import * as path from "https://deno.land/std@v0.55.0/path/mod.ts";import { desc, glob, run, sh, task } from "../mod.ts";
for (const prereq of glob("*.md")) { const target = `${path.basename(prereq, ".md")}.html`; desc(`compile "${target}"`); task(target, [prereq], async function () { await sh(`markdown "${prereq}" > "${target}"`); });}
run();