0.1.6 • Published 4 days ago
@faulpeltz/schaufel v0.1.6
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