Helps to restart automatically your deno application during development
deno install --allow-read --allow-run --unstable https://deno.land/x/drun/drun.tsUse deno run with watch mode, remember to separate --runtimeOptions with commas and without spaces
drun watch --entryPoint=./index.ts --cwd=./ --runtimeOptions=--allow-net=0.0.0.0,--allow-write,--allow-read--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
Use deno test with watch mode.
drun test --entryPoint=index.test.ts --runtimeOptions=--allow-read--entryPoint: The entry point of your test--cwd: Root folder from which you want to watch--runtimeOptions: Options you want to send to the Deno runtime--help: Display help for test command
Display help
drun helpIt is possible to create a configuration file at the cwd location.
This configuration file must be named drun.json
{
"entryPoint": "./index.ts",
"cwd": "./",
"excludes": [
"./file/you/want/to/exclude.ts"
],
"runtimeOptions": [
"--allow-net",
"--allow-read"
]
}