@faulpeltz/schaufel

0.1.7 • Public • Published

Schaufel

Minimalist Task Runner for JS/TS projects

Overview

  • Define tasks and their dependencies in JSON
  • Tasks are run concurrenty in order to satisfy dependencies
  • Separate log files for tasks to prevent clutter

Example

Example for a simple schaufel.json file.

{
    "project": "MyProject",
    "logDir": "./log",
    "logAlways": true,
    "tasks": {
        "tsc": {
            "title": "type check",
            "type": "npx",
            "file": "tsc",
            "args": ["--noEmit"],
            "timeout": 30
        },
        "lint": {
            "title": "eslint",
            "type": "npx",
            "file": "eslint",
            "args": ["src/", "--ext", ".ts"],
            "timeout": 60,
            "depends": ["tsc"]
        },
        "test": {
            "title": "unit tests",
            "type": "npx",
            "file": "vitest",
            "args": "run",
            "timeout": 60,
            "depends": ["tsc"]
        }
    }
}

Running

To get a list of available tasks:

sch

To run a task and it's dependencies:

sch your-task

License

MIT

Licenses

For bundled package license information see dist/LICENSES.txt

Readme

Keywords

none

Package Sidebar

Install

npm i @faulpeltz/schaufel

Weekly Downloads

0

Version

0.1.7

License

MIT

Unpacked Size

128 kB

Total Files

5

Last publish

Collaborators

  • faulpeltz