Skip to main content

Drun (Deno runner)

Helps to restart automatically your deno application during development

Installation

deno install --allow-read --allow-run --unstable https://deno.land/x/drun@v1.1.0/drun.ts

How to use

Watch

Use deno run with watch mode

drun watch --entryPoint=./index.ts --cwd=./ --runtimeOptions=--allow-net

Available options

  • --entryPoint: The entry point of your program
  • --cwd: Root folder from which you want to watch
  • --runtimeOptions: Options you want to send to the Deno runtime
  • --help: Display help for watch command

Help

Display help

drun help

Configuration file

It is possible to create a configuration file at the cwd location. This configuration file must be named drun.json

Example of configuration file

{
  "entryPoint": "./index.ts",
  "cwd": "./",
  "excludes": [
    "./file/you/want/to/exclude.ts"
  ],
  "runtimeOptions": [
    "--allow-net",
    "--allow-read"
  ]
}