Break down your files and learn what's inside. Created by Evan Hahn.
Go to file
Evan Hahn 858c6c83a4 GIF: Update sort flag docs 2023-08-16 12:11:07 -05:00
public GIF: Update sort flag docs 2023-08-16 12:11:07 -05:00
test GIF: UI for LSD packed field 2023-08-16 11:45:11 -05:00
types GIF: basic parsing of header 2023-08-11 22:40:30 -05:00
README.md Add a "code style" section to the readme 2023-08-02 13:24:29 -05:00
deno.json PNG explorer mostly done: interactivity complete 2023-08-02 14:49:25 -05:00
deno.lock PNG: basic skeleton 2023-08-01 09:20:57 -05:00

README.md

Formats Exposed

To develop, start a static file server in public/. There is no build step.

To deploy, copy the files from public/ to a static file host.

To run tests, run deno test.

To format code, run deno fmt.

To lint, run deno lint.

To run type checks, run deno task typecheck.

To run all checks (tests, linting, code formatting, and type checks), run deno task check-all.

Code style

  • Make sure all checks pass with deno task check-all.
  • Prefer arrow functions.
  • throw should be used when the developer makes a mistake, not for "expected" errors. For example, if someone uploads a bogus file, that shouldn't throw an error.
  • Bad news first:
    • If a function returns null if an error case, define the type null | Result, not Result | type.
    • Test error cases first.