Git Product home page Git Product logo

dunner's Introduction

Dunner - A flexible task runner

CI

Dunner is a task runner that allows you to delcare tasks using a simple object structure.

  • Tasks can have dependencies that can optionally run in parallel
    • Dependency resolution uses the current task by default, to access the root of the tasks definitions, prefix the task name with :
      • Thus task with a dependency of child would resolve to :task:child
      • A dependency of :child would resolve to :child
  • Task names can be matched via glob or regex
    • Matches can be used as part of the task logic
  • Tasks can be run conditionally depending on input and output files
    • Task using glob/regex can use the match as part of the file name
  • Various utility methods are provided to make building tasks easy
  • Tasks can have children tasks to aid with organisation
    • Children tasks are accessed using a pathing system
      • To run a task called child which is a child of task you can run task:child
      • Task paths starting with : (e.g. :task:child) are resolved from the root of the definition

Task file

Tasks can be defined all in a single file or spread across multiple and imported into a root task file. A basic task file could look like this:

tasks.ts

#!/usr/bin/env deno run -A
import { log, run } from "https://deno.land/x/dunner/mod.ts";

run({
  default: {
    execute() {
      log("default task");
    },
  },
});

The run call means that Dunner will be ran against the arguments present in Deno.args. To see the available command line options, you can run the example task file with the -h flag:

deno run -A https://deno.land/x/dunner/tasks.ts -h

This file provides a collection of examples tasks that can be used to explore CLI options without needing a custom task file.

API

To see the API you can visit the docs.

For complex file-system operations, you can use std/fs.

dunner's People

Contributors

luvies avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.