Skip to content

thomas3577/tano

Repository files navigation

tano

JSR Version JSR Score ci

Yet another task runner.

There is a very good article on the Deno blog with the title You Don't Need a Build Step. Yes, you don't need this task runner either, but it works (maybe) and it was fun to implement it.

Install

deno install --unstable-kv --allow-read --allow-run --allow-env --allow-write -g -n tano jsr:@dx/tano/tano

Note:

Your tasks may need additional permissions.

Preparation

Create a TypeScript file with the name tanofile.ts and import the 'task' function and create your tasks.

import { needs, task } from 'jsr:@dx/tano';

task('pre-task', `echo 'These were ...'`);
task('default', needs('pre-task'), `echo '...two tasks.'`);

Using

Execute default task:

tano

Execute my-task:

tano --task my-task

...or shorthand:

tano my-task

Help

tano --help

Documentation