task-jugglr-core

1.1.1 • Public • Published

task-jugglr-core

A very simple task runner. Basically TJ can execute a series of commands via a simple CLI. Commands file are plain JSON files with the following structure:

{
	"jobName": ...
	"outputFolder": ... [optional] if given an output is written inside the folder, with a timestamp suffix
	"vars": {
		"varName": "varValue",
		"varName": "varValue",
		"varName": "varValue",
		"varName": "varValue"
	}
	"tasks": [
		{
			"name": string -> task name
			"cmd": string -> the actual command
			"log": string -> the one line output at the task start
			"cwd": string -> current working directory
			"err": true/false -> if true the execution is blocked on error
			"alt": {
				"jobName": ...
				"tasks": ...
				...
				recursive structure, see below
			}
		}
	]
}

How to use it

After installing via npm you can call the "tj" cli with one argument. The argument should be the job file to execute. By default, the engine assumes that the current dirctory is the working directory. For every task you can specify a new one.

Changelog

1.1.1

New features

  • adopting semantic versioning

1.0.5

New features

  • output log folder

1.0.4

Bugs

  • Alternate task fix

1.0.3

New features

  • readme file with minimal documentation

1.0.2

New features

  • command output is now rendered on TJ output

1.0.1

New features

  • variables are now expanded for alternative tasks

1.0.0

New features

  • sequential and alternative tasks execution
  • CLI interface
  • engine run API

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i task-jugglr-core

    Weekly Downloads

    0

    Version

    1.1.1

    License

    ISC

    Unpacked Size

    8.88 kB

    Total Files

    11

    Last publish

    Collaborators

    • davide.mazzocchi