- Run:
deno run -E
ordr
(with aliases) - Dev:
deno task dev
(app-specific, e.g.,deno run -REN --watch main.ts
) - Test:
deno test
(all tests) - Test single file:
deno test path/to/test_file.ts
- Format:
deno fmt
- Line width: 120 characters
- No semicolons
- Imports: Use JSR (
jsr:@package/name@1
) or npm (npm:@package/name@1
) indeno.json
and@package/name
on imports - Path aliases:
#/
for current directory - Types: Use
@pkgs/types
indeno.json
, use Zod for validation - Naming: camelCase for functions/variables, PascalCase for classes/interfaces
- Error handling: Use try/catch with console.error for logging
- Monorepo with workspaces:
apps/*
,pkgs/*
- Test files named with
_test.ts
suffix - Tests follow pattern:
Deno.test(function testName() {...})
- Each package has its own deno.json with specific dependencies
d
: denodt
: deno taskdr
: deno run -Eds
: deno task start