Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jinjor/deno-task-runner
Task runner for deno
https://github.com/jinjor/deno-task-runner
deno
Last synced: 3 months ago
JSON representation
Task runner for deno
- Host: GitHub
- URL: https://github.com/jinjor/deno-task-runner
- Owner: jinjor
- License: mit
- Created: 2019-01-07T16:30:16.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-19T08:36:49.000Z (almost 6 years ago)
- Last Synced: 2024-05-18T15:39:13.031Z (6 months ago)
- Topics: deno
- Language: TypeScript
- Size: 44.9 KB
- Stars: 29
- Watchers: 2
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-deno - task-runner - 像npm脚本一样编写任务。 (Uncategorized / Uncategorized)
- awesome-deno - task-runner - Write tasks just like npm scripts.![GitHub stars](https://img.shields.io/github/stars/jinjor/deno-task-runner?style=plastic) (Tools / Online Playgrounds)
- awesome-deno-cn - @jinjor/deno-task-runner
README
# deno-task-runner
[![Build Status](https://travis-ci.org/jinjor/deno-task-runner.svg?branch=master)](https://travis-ci.org/jinjor/deno-task-runner)
[![Build status](https://ci.appveyor.com/api/projects/status/6kbm7dxgsk7x6wl0?svg=true)](https://ci.appveyor.com/project/jinjor/deno-task-runner)Write tasks in deno.
## Example
```typescript
import { task } from "https://deno.land/x/task_runner/mod.ts";task("prepare", "echo preparing...");
task("counter", "deno counter.ts");
task("thumb", "deno https://deno.land/thumb.ts");
task("all", "$prepare", ["$counter alice", "$counter bob"], "$thumb");
// ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^
// 1st task 2nd task (parallel) 3rd task
``````
$ deno example.ts all --allow-run
preparing...
bob 1
alice 1
alice 2
bob 2
alice 3
bob 3
alice 4
bob 4
bob 5
alice 5
👍
```## Watch
```typescript
task("compile", "echo changed", "$all").watchSync("src");
task("dev-server", "echo restarting...", "$server").watch("server");
```## LICENSE
MIT