Tasksmith is a task automation tool for Deno that routes the first command line argument to TypeScript functions. It also has a suite functions to assist with various task automation workflows.
License: MIT
Tasksmith is only available via tagged revision provided by this repository.
// file: deno.json
{
"imports": {
"tasksmith": "https://raw.githubusercontent.com/sinclairzx81/tasksmith/0.9.0/src/index.ts"
}
}Tasksmith will route the first command line argument to a function.
import { Task } from 'tasksmith'
Task.run('test', () => console.log('test'))
Task.run('build', () => console.log('build'))Tasks are usually configured and run from deno.json
// file: deno.json
{
"tasks": {
"test": "deno run -A tasks.ts test",
"build": "deno run -A tasks.ts build"
}
}