new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Deno · Reference · all subjects

cli commands/watch

8 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

deno watch command basic usage

The deno watch command runs a program and reloads it when its source files change. It is a shorthand for deno run --watch-hmr. The program runs with hot module replacement enabled, so on a change Deno swaps the updated modules in place instead of doing a full restart.

deno watch syntax

The basic usage syntax is: deno watch main.ts

deno watch is equivalent to deno run --watch-hmr

Running deno watch main.ts is equivalent to running deno run --watch-hmr main.ts

deno watch inherits all deno run flags

Because deno watch reuses deno run, every deno run flag works with deno watch, including watch options.

deno watch --watch-hmr flag

The --watch-hmr=<paths> flag adds extra paths to watch when using deno watch.

deno watch --watch-exclude flag

The --watch-exclude=<paths> flag excludes paths from triggering a reload when using deno watch.

deno watch --no-clear-screen flag

The --no-clear-screen flag keeps previous output instead of clearing the screen on each reload when using deno watch.

deno watch with flags example

Example: deno watch --watch-exclude=dist/ -RN main.ts

Give your agent this brain