756 B
756 B
AGENTS.md
Nix
- Enter a dev shell with
nix develop - Assume nothing will work outside of the shell
- See/edit
flake.nixfor relevant concerns
Deno
- Manage dependencies with
deno addanddeno removein./srcdirectory - Deno maintains its own
deno.lockwhich Nix picks up - IMPORTANT: never use JSR dependencies, only NPM
- Example:
deno add npm:chalkthenimport chalk from "chalk";in.tsfiles
Project conventions
- Entry points are CLI subcommands (
./src/main.ts) - Use
@stricli/corefor CLI - Prefer to do things by running shell commands via
dax-sh - Verbosity implies
$.setPrintCommand(true)fordax-shto output what it runs - Logs always go to
stderrso thatstdoutcan be redirected to a file safely