Skip to content

ErikGIovani/denosk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#

Denosk

The task runner for Deno

Denosk is a task runner for Deno, if you come from Node JS with the Yarn package manager and you miss being able to run a script with yarn dev or yarn start and you want to avoid writing commands like deno task dev or trex run dev then Denosk is for you.

Also with Denosk you can also create tasks from the terminal.

Installation

deno install -A --unstable -n dn --no-check https://deno.land/x/denosk/cli.ts

Permissions

The permissions that Denosk uses are --allow-read, --allow-write and --allow-run .

Usage

To display help on how to use Denosk.

dn help

To display all tasks from your deno.json, deno.jsonc or run.json file if you are using Trex scripts.

dn

To execute a task found in your deno.json, deno.jsonc or run.json file if you are using Trex, with Denosk just pass the name of the task to be executed after the word dn as in the following example.

dn start

To create a task you need to pass the name of the task after the task argument followed by the task with quotes, how in this example:

dn task dev "deno run --watch main.ts"

You can also create a task without having a deno.json file, when creating the task Denosk will create the file and include the task in it, this feature only works on deno.json files for this moment.

Why Denosk?

Denosk is born from a combination between the word Deno and the word Task, it's that simple.


Made with ❤️ by Erik Giovani